-
Notifications
You must be signed in to change notification settings - Fork 34
/
docker-compose.yml
233 lines (214 loc) · 5.15 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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
version: '2'
services:
# # cAdvisor dashboard for container metrics
# cadvisor:
# image: google/cadvisor:${CADVISOR_VER}
# restart: always
# volumes:
# - /:/rootfs:ro
# - /var/run:/var/run:rw
# - /sys:/sys:ro
# - /var/lib/docker/:/var/lib/docker:ro
# Celery beat for Cyphon
celerybeat:
extends:
file: common-services.yml
service: cyphon-prod
restart: always
command: ../entrypoints/run_celerybeat.sh
volumes_from:
- geoip
links:
- elasticsearch
# - mongo
- postgres
- rabbit
depends_on:
- cyphon
- rabbit
# Celery worker for Cyphon
celeryworker:
extends:
file: common-services.yml
service: cyphon-prod
restart: always
command: ../entrypoints/run_celeryworker.sh
volumes_from:
- geoip
links:
- elasticsearch
# - mongo
- postgres
- rabbit
depends_on:
- cyphon
- rabbit
# Cyclops UI for Cyphon
cyclops:
image: dunbar/cyclops:${CYCLOPS_VER}
restart: always
links:
- nginx
depends_on:
- nginx
# Cyphon Engine
cyphon:
extends:
file: common-services.yml
service: cyphon-prod
volumes:
- ./config/cyphon/fixtures:/usr/src/app/cyphon/fixtures:ro
volumes_from:
- geoip
links:
- elasticsearch
# - mongo
- postgres
depends_on:
- postgres
# Elasticsearch storage backend
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_VER}
restart: always
environment:
- http.host=0.0.0.0
- transport.host=127.0.0.1
volumes:
- ./config/elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
- ./config/elasticsearch/jvm.options:/usr/share/elasticsearch/config/jvm.options:ro
- ./config/elasticsearch/log4j2.properties:/usr/share/elasticsearch/config/log4j2.properties:ro
filebeat:
image: docker.elastic.co/beats/filebeat:${ELASTIC_VER}
restart: always
links:
- logstash
depends_on:
- logstash
volumes:
- ./config/beats/filebeat/filebeat.yml:/usr/share/filebeat/filebeat.yml:rw
- ./log:/var/log
# GeoLite2 databases for geolocating IP addresses
geoip:
image: dunbar/geoip
restart: always
# Kibana dashboard for Elasticsearch data
kibana:
image: docker.elastic.co/kibana/kibana:${ELASTIC_VER}
restart: always
environment:
LOGSPOUT: ignore # don't send Kibana's logs to Logspout
links:
- elasticsearch
depends_on:
- elasticsearch
volumes:
- ./config/kibana/kibana.yml:/usr/share/kibana/config/kibana.yml:ro
# Logspout to collect container logs
logspout:
image: gliderlabs/logspout:${LOGSPOUT_VER}
restart: always
expose:
- "5000/udp"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
command: syslog://logstash:5000
links:
- logstash
depends_on:
- logstash
# Logstash log ingestion
logstash:
image: docker.elastic.co/logstash/logstash:${ELASTIC_VER}
restart: always
command: logstash -f /usr/share/logstash/pipeline --config.reload.automatic
volumes:
- ./config/logstash/config:/usr/share/logstash/config:ro
- ./config/logstash/patterns:/usr/share/logstash/patterns:ro
- ./config/logstash/pipeline:/usr/share/logstash/pipeline:ro
links:
- elasticsearch
- rabbit
depends_on:
- elasticsearch
- rabbit
# # MongoDB storage backend
# mongo:
# image: mongo:${MONGODB_VER}
# restart: always
# Nginx web server
nginx:
image: nginx:${NGINX_VER}
restart: always
volumes:
- ./config/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- /www/static
volumes_from:
- cyphon
links:
# - cadvisor
- cyphon
- kibana
- rabbit
depends_on:
- cyphon
# PostgreSQL PostGIS database for Cyphon
postgres:
image: mdillon/postgis:${POSTGRES_VER}
restart: always
env_file:
- ./config/env/cyphon.env
# RabbitMQ message broker for Cyphon and Logstash
rabbit:
image: rabbitmq:${RABBITMQ_VER}
restart: always
env_file:
- ./config/env/cyphon.env
# RabbitMQ queue consumer for Cyphon
logchutes:
extends:
file: common-services.yml
service: cyphon-prod
restart: always
command: ../entrypoints/run_receiver.sh logchutes
volumes_from:
- geoip
links:
- elasticsearch
# - mongo
- postgres
- rabbit
depends_on:
- cyphon
- rabbit
monitors:
extends:
file: common-services.yml
service: cyphon-prod
restart: always
command: ../entrypoints/run_receiver.sh monitors
volumes_from:
- geoip
links:
- elasticsearch
# - mongo
- postgres
- rabbit
depends_on:
- cyphon
- rabbit
watchdogs:
extends:
file: common-services.yml
service: cyphon-prod
restart: always
command: ../entrypoints/run_receiver.sh watchdogs
volumes_from:
- geoip
links:
- elasticsearch
# - mongo
- postgres
- rabbit
depends_on:
- cyphon
- rabbit