blob: 3bc75fec0927091d5082214dab1f5bcc3d7ca3af [file] [log] [blame]
Stephane Barbarie3eab2bb2017-04-24 15:04:23 -04001version: '2'
2
3services:
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
30networks:
31 docker_elastic:
32 driver: bridge