Stephane Barbarie | 3eab2bb | 2017-04-24 15:04:23 -0400 | [diff] [blame] | 1 | version: '2' |
| 2 | |
| 3 | services: |
| 4 | elasticsearch: |
| 5 | image: docker.elastic.co/elasticsearch/elasticsearch:5.2.2 |
| 6 | environment: |
| 7 | - transport.host=localhost |
| 8 | - transport.tcp.port=9300 |
| 9 | - xpack.security.enabled=false |
| 10 | ports: |
| 11 | - "9200:9200" |
| 12 | - "9300:9300" |
| 13 | networks: |
| 14 | - docker_elastic |
| 15 | |
| 16 | logstash: |
| 17 | build: ./elasticsearch/logstash |
| 18 | environment: |
| 19 | - log.level=info |
| 20 | command: logstash -f /etc/logstash/conf.d/ |
| 21 | volumes: |
| 22 | - ./elasticsearch/logstash/config:/etc/logstash/conf.d |
| 23 | ports: |
| 24 | - "5000:5000" |
| 25 | networks: |
| 26 | - docker_elastic |
| 27 | depends_on: |
| 28 | - elasticsearch |
| 29 | |
| 30 | networks: |
| 31 | docker_elastic: |
| 32 | driver: bridge |