-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
161 lines (150 loc) · 3.69 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
# References:
# - https://www.elastic.co/guide/en/elasticsearch/reference/5.6/docker.html
version: '3.0'
services:
logstash:
image: docker.elastic.co/logstash/logstash:5.6.10
environment:
TZ: Asia/Seoul
ports:
- "514:5000"
- "514:5000/udp"
volumes:
- ./logstash/settings/logstash.yml:/usr/share/logstash/config/logstash.yml
- ./logstash/pipeline/syslog-kafka.conf:/usr/share/logstash/pipeline/syslog.conf
networks:
backend:
depends_on:
- kafka
zookeeper:
image: zookeeper:3.4
networks:
backend:
kafka:
image: wurstmeister/kafka:2.11-1.1.1
environment:
KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181"
KAFKA_BROKER_ID: 1
KAFKA_LISTENERS: PLAINTEXT://:9092
KAFKA_AUTO_CREATE_TOPICS_ENABLE: ${KAFKA_AUTO_CREATE_TOPIC:-false}
KAFKA_JMX_OPTS: "-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=kafka -Dcom.sun.management.jmxremote.rmi.port=1099"
JMX_PORT: 1099
links:
- zookeeper
networks:
backend:
ports:
- 9092:9092
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- kafka:/kafka
depends_on:
- zookeeper
kafka-manager:
image: sheepkiller/kafka-manager
environment:
ZK_HOSTS: "zookeeper:2181"
APPLICATION_SECRET: "@dminP@ssw0rd"
networks:
backend:
links:
- zookeeper
- kafka
ports:
- 9009:9000
depends_on:
- kafka
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:${TAG:-5.6.9}
volumes:
- ./elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- esdata1:/usr/share/elasticsearch/data
env_file:
- ./env/elasticsearch
environment:
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
ports:
- 9200:9200
- 9300:9300
networks:
es:
elasticsearch2:
image: docker.elastic.co/elasticsearch/elasticsearch:${TAG:-5.6.9}
volumes:
- ./elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- esdata2:/usr/share/elasticsearch/data
env_file:
- ./env/elasticsearch
environment:
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
networks:
es:
kibana:
image: kibana:${TAG:-5.6.9}
ports:
- 5601:5601
networks:
es:
depends_on:
- elasticsearch
cerebro:
image: yannart/cerebro:latest
ports:
- 9100:9000
networks:
es:
depends_on:
- elasticsearch
mongo:
image: mongo:3
networks:
backend:
volumes:
- mongo_data:/data/db
graylog:
image: graylog2/graylog:${GRAYLOG_VERSION:-2.5.1-2}
volumes:
- ./graylog2/graylog.conf:/usr/share/graylog/data/config/graylog.conf
- ./graylog2/GeoLite2-City/GeoLite2-City.mmdb:/etc/graylog/server/GeoLite2-City.mmdb
- ./graylog2/metrics-reporter-prometheus-1.5.0.jar:/usr/share/graylog/plugin/metrics-reporter-prometheus-1.5.0.jar
env_file:
- ./env/graylog
environment:
- GRAYLOG_IS_MASTER=true
- GRAYLOG_WEB_ENDPOINT_URI=http://${HOST_IP}:9000/api
networks:
es:
backend:
links:
- elasticsearch
- mongo
- zookeeper
- kafka
depends_on:
- mongo
- elasticsearch
ports:
# Graylog web interface and REST API
- 9000:9000
# Beats
- 5044:5044
# GELF TCP
- 12201:12201
# GELF UDP
- 12201:12201/udp
volumes:
mongo_data:
kafka:
esdata1:
esdata2:
networks:
es:
backend: