-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
116 lines (107 loc) · 2.9 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
version: '2'
services:
elasticsearch:
image: elasticsearch:5.1.2
restart: always
#build: elasticsearch/
ports:
- 9200:9200
# uncomment to map elastic db to volume with large disk space
volumes:
- /data/volume0/elasticsearch/:/usr/share/elasticsearch/data/
environment:
ES_JAVA_OPTS: "-Xms4g -Xmx4g "
networks:
- docker_elk
logstash:
image: logstash:5.1.2
restart: always
#build: logstash/
command: -f /etc/logstash/conf.d/
ports:
- 5044:5044
- 5014:5014
- 5015:5015
volumes:
- ./logstash/config:/etc/logstash/conf.d
- ./logstash/patterns:/etc/logstash/patterns
- ./logstash/logs/:/var/log/logstash/
networks:
- docker_elk
kibana:
image: kibana:5.1.2
restart: always
#build: kibana/
volumes:
- ./kibana/config/kibana.yml:/etc/kibana/kibana.yml
ports:
- "5601:5601"
networks:
- docker_elk
curator:
image: emccorp/docker-escurator:5.0.4
restart: always
environment:
ELASTICSEARCH_HOST: elasticsearch
RETENTION_DAYS: 14
volumes:
- ./curator/config/:/curator/config/
- ./curator/logs/:/curator/logs/
networks:
- docker_elk
nginx:
image: nginx
restart: always
ports:
- 80:80
- 9201:9200
- 4443:4443
volumes:
- ./nginx/config/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/config/http_conf.d/:/etc/nginx/http_conf.d
- ./nginx/config/tcp_conf.d/:/etc/nginx/tcp_conf.d
- ./nginx/logs/:/var/log/nginx/
networks:
- docker_elk
#elastalert:
# image: emccorp/docker-elastalert:0.1.12
# restart: always
# #build: elastalert/
# environment:
# KIBANA_URL: "${KIBANA_URL}"
# EMAIL_ADDRESS: "${EMAIL_ADDRESS}"
# SLACK_WEBHOOK_URL: "${SLACK_WEBHOOK_URL}"
# SNMP_TRAP_DESTINATION: "${SNMP_TRAP_DESTINATION}"
# SNMP_COMMUNITY: "${SNMP_COMMUNITY}"
# # export HOSTNAME from your shell for this to take effect
# hostname: "${HOSTNAME}"
# volumes:
# - ./elastalert/config/:/opt/elastalert/config/
# - ./elastalert/rules/:/opt/elastalert/rules/
# networks:
# - docker_elk
#filebeat:
# # uncomment the line below to disable this container
# #entrypoint: /bin/true
# image: emccorp/docker-filebeat:5.2.0
# #image: prima/filebeat:5.1.2
# #hostname: lglca061.lss.emc.com
# volumes:
# - ./filebeat/config/filebeat.yml:/filebeat/filebeat.yml
# - ./filebeat/logs:/var/log/ecs/
# networks:
# - docker_elk
#metricbeat:
# # uncomment the line below to disable this container
# entrypoint: /bin/true
# image: emccorp/docker-metricbeat:5.2.0
# #hostname: lglca061.lss.emc.com
# #build: metricbeat
# pid: host
# volumes:
# - ./metricbeat/config/metricbeat.yml:/metricbeat/metricbeat.yml
# networks:
# - docker_elk
networks:
docker_elk:
driver: bridge