Adding the ELK Code
[platform-oam.git] / elk-stack / docker-compose.yml
1 version: '2'
2
3 services:
4
5   elasticsearch:
6     build: elasticsearch/
7     volumes:
8       - ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
9     ports:
10       - "9200:9200"
11       - "9300:9300"
12     environment:
13       ES_JAVA_OPTS: "-Xmx256m -Xms256m"
14     networks:
15       - elk
16
17   logstash:
18     build: logstash/
19     volumes:
20       - ./logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml
21       - ./logstash/pipeline:/usr/share/logstash/pipeline
22     ports:
23       - "5000:5000"
24     environment:
25       LS_JAVA_OPTS: "-Xmx256m -Xms256m"
26     networks:
27       - elk
28     depends_on:
29       - elasticsearch
30
31   kibana:
32     build: kibana/
33     volumes:
34       - ./kibana/config/:/usr/share/kibana/config
35     ports:
36       - "5601:5601"
37     networks:
38       - elk
39     depends_on:
40       - elasticsearch
41
42   filebeat:
43     build: filebeat/
44     volumes:
45      - acumos-logs:/filebeat-logs    
46     networks:
47       - elk
48     depends_on:
49       - logstash          
50   
51
52 networks:
53
54   elk:
55     driver: bridge