Advertisement
nullawhale

docker-compose.yml

Feb 2nd, 2020
375
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.18 KB | None | 0 0
  1. version: '3.2'
  2.  
  3. services:
  4.   elasticsearch:
  5.     build:
  6.       context: elasticsearch/
  7.       args:
  8.         ELK_VERSION: $ELK_VERSION
  9.     volumes:
  10.       - type: bind
  11.         source: ./elasticsearch/config/elasticsearch.yml
  12.         target: /usr/share/elasticsearch/config/elasticsearch.yml
  13.         read_only: true
  14.       - type: volume
  15.         source: elasticsearch
  16.         target: /usr/share/elasticsearch/data
  17.     ports:
  18.     - "9200:9200"
  19.       - "9300:9300"
  20.     environment:
  21.       ES_JAVA_OPTS: "-Xmx256m -Xms256m"
  22.       ELASTIC_PASSWORD: password
  23.       # Use single node discovery in order to disable production mode and avoid bootstrap checks
  24.       # see https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html
  25.       discovery.type: single-node
  26.     networks:
  27.     - elk
  28.  
  29.   logstash:
  30.     build:
  31.       context: logstash/
  32.       args:
  33.         ELK_VERSION: $ELK_VERSION
  34.     volumes:
  35.       - type: bind
  36.         source: ./logstash/config/logstash.yml
  37.         target: /usr/share/logstash/config/logstash.yml
  38.         read_only: true
  39.       - type: bind
  40.         source: ./logstash/pipeline
  41.         target: /usr/share/logstash/pipeline
  42.         read_only: true
  43.     ports:
  44.     - "5000:5000"
  45.      - "5044:5044"
  46.     environment:
  47.       LS_JAVA_OPTS: "-Xmx256m -Xms256m"
  48.     networks:
  49.     - elk
  50.     depends_on:
  51.     - elasticsearch
  52.  
  53.   kibana:
  54.     build:
  55.       context: kibana/
  56.       args:
  57.         ELK_VERSION: $ELK_VERSION
  58.     volumes:
  59.       - type: bind
  60.         source: ./kibana/config/kibana.yml
  61.         target: /usr/share/kibana/config/kibana.yml
  62.         read_only: true
  63.     ports:
  64.     - "5601:5601"
  65.     networks:
  66.     - elk
  67.     depends_on:
  68.     - elasticsearch
  69.  
  70.   filebeat:
  71.     build:
  72.       context: filebeat/
  73.       args:
  74.         ELK_VERSION: $ELK_VERSION
  75.     volumes:
  76.       - type: bind
  77.         source: ./filebeat/config/filebeat.yml
  78.         target: /usr/share/filebeat/config/filebeat.yml
  79.       - type: bind
  80.         source: /home/sources/birch-bark/logs
  81.         target: /usr/share/logs
  82.     networks:
  83.     - elk
  84.     depends_on:
  85.     - elasticsearch
  86.  
  87.  
  88. networks:
  89.   elk:
  90.     driver: bridge
  91.  
  92. volumes:
  93. elasticsearch:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement