Adapted mount and image

This commit is contained in:
Kevin Veen-Birkenbach 2020-12-30 16:26:16 +01:00
parent 3448734482
commit f7a194ac67

View File

@ -30,16 +30,11 @@
project_name: elk project_name: elk
definition: definition:
elasticsearch: elasticsearch:
image: elasticsearch image: docker.elastic.co/elasticsearch/elasticsearch:{{ELK_VERSION}}
restart: always restart: always
volumes: volumes:
- type: bind - /etc/docker-elk/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
source: /etc/docker-elk/elasticsearch.yml - elasticsearch:/usr/share/elasticsearch/data
target: /usr/share/elasticsearch/config/elasticsearch.yml
read_only: true
- type: volume
source: elasticsearch
target: /usr/share/elasticsearch/data
ports: ports:
- "9200:9200" - "9200:9200"
- "9300:9300" - "9300:9300"
@ -50,17 +45,11 @@
# see: https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html # see: https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html
discovery.type: single-node discovery.type: single-node
logstash: logstash:
image: logstash image: docker.elastic.co/logstash/logstash:{{ELK_VERSION}}
restart: always restart: always
volumes: volumes:
- type: bind - /etc/docker-elk/logstash.yml:/usr/share/logstash/config/logstash.yml:ro
source: /etc/docker-elk/logstash.yml - /etc/docker-elk/logstash.conf:/usr/share/logstash/pipeline/logstash.conf:ro
target: /usr/share/logstash/config/logstash.yml
read_only: true
- type: bind
source: /etc/docker-elk/logstash.conf
target: /usr/share/logstash/pipeline/logstash.conf
read_only: true
ports: ports:
- "5044:5044" - "5044:5044"
- "5000:5000/tcp" - "5000:5000/tcp"
@ -69,12 +58,9 @@
environment: environment:
LS_JAVA_OPTS: "-Xmx256m -Xms256m" LS_JAVA_OPTS: "-Xmx256m -Xms256m"
kibana: kibana:
image: kibana image: docker.elastic.co/kibana/kibana:{{ELK_VERSION}}
restart: always restart: always
volumes: volumes:
- type: bind - /etc/docker-elk/kibana.yml:/usr/share/kibana/config/kibana.yml:ro
source: /etc/docker-elk/kibana.yml
target: /usr/share/kibana/config/kibana.yml
read_only: true
ports: ports:
- "5601:5601" - "5601:5601"