Use v3 volume syntax

parent 600488a5
...@@ -60,8 +60,8 @@ Other available stack variants: ...@@ -60,8 +60,8 @@ Other available stack variants:
### Host setup ### Host setup
* [Docker](https://www.docker.com/community-edition#/download) version **17.05+** * [Docker Engine](https://docs.docker.com/install/) version **17.05+**
* [Docker Compose](https://docs.docker.com/compose/install/) version **1.6.0+** * [Docker Compose](https://docs.docker.com/compose/install/) version **1.12.0+**
* 1.5 GB of RAM * 1.5 GB of RAM
By default, the stack exposes the following ports: By default, the stack exposes the following ports:
......
version: '2' version: '3.2'
services: services:
...@@ -8,7 +8,10 @@ services: ...@@ -8,7 +8,10 @@ services:
args: args:
ELK_VERSION: $ELK_VERSION ELK_VERSION: $ELK_VERSION
volumes: volumes:
- ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro - type: bind
source: ./elasticsearch/config/elasticsearch.yml
target: /usr/share/elasticsearch/config/elasticsearch.yml
read_only: true
ports: ports:
- "9200:9200" - "9200:9200"
- "9300:9300" - "9300:9300"
...@@ -24,8 +27,14 @@ services: ...@@ -24,8 +27,14 @@ services:
args: args:
ELK_VERSION: $ELK_VERSION ELK_VERSION: $ELK_VERSION
volumes: volumes:
- ./logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml:ro - type: bind
- ./logstash/pipeline:/usr/share/logstash/pipeline:ro source: ./logstash/config/logstash.yml
target: /usr/share/logstash/config/logstash.yml
read_only: true
- type: bind
source: ./logstash/pipeline
target: /usr/share/logstash/pipeline
read_only: true
ports: ports:
- "5000:5000" - "5000:5000"
- "9600:9600" - "9600:9600"
...@@ -42,7 +51,10 @@ services: ...@@ -42,7 +51,10 @@ services:
args: args:
ELK_VERSION: $ELK_VERSION ELK_VERSION: $ELK_VERSION
volumes: volumes:
- ./kibana/config/kibana.yml:/usr/share/kibana/config/kibana.yml:ro - type: bind
source: ./kibana/config/kibana.yml
target: /usr/share/kibana/config/kibana.yml
read_only: true
ports: ports:
- "5601:5601" - "5601:5601"
networks: networks:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment