-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
251 lines (236 loc) · 5.61 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
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
version: '3'
services:
netdata:
image: netdata/netdata:v1.22.1
container_name: 'hex-netdata'
ports:
- 19999:19999
depends_on:
- redis
- rabbitmq
- mongodb
- influxdb
- core
- grafana
- telegraf
cap_add:
- SYS_PTRACE
security_opt:
- apparmor:unconfined
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- backend
grafana:
image: koushamad/hexagonal-grafana:latest
build: ./docker/grafana
container_name: 'hex-grafana'
volumes:
- ./docker/grafana/data/grafana:/var/lib/grafana
ports:
- 3000:3000
links:
- redis
- rabbitmq
- mongodb
- influxdb
- elassandra
depends_on:
- redis
- rabbitmq
- mongodb
- influxdb
- elassandra
environment:
GF_AUTH_ANONYMOUS_ENABLED: ${GF_AUTH_ANONYMOUS_ENABLED}
GF_AUTH_ANONYMOUS_ORG_ROLE: ${GF_AUTH_ANONYMOUS_ORG_ROLE}
INFLUXDB_URI: ${INFLUXDB_URI}
INFLUXDB_DB: ${INFLUXDB_DB}
INFLUXDB_USER: ${INFLUXDB_USER}
INFLUXDB_USER_PASSWORD: ${INFLUXDB_USER_PASSWORD}
networks:
- backend
mongodb:
image: mongo:3.6.18
container_name: 'hex-mongodb'
ports:
- ${MONGO_PORT}:27017
volumes:
- ./docker/mongo/data:/data
- ./docker/mongo/log:/var/log/mongodb
networks:
- backend
elassandra:
image: erangaeb/elassandra:6.2
container_name: 'hex-elassandra'
environment:
- CASSANDRA_BROADCAST_ADDRESS=host.docker.internal
- CASSANDRA_SEEDS=host.docker.internal
volumes:
- ./docker/cassandra/log:/var/log/cassandra
- ./docker/elassandra/data:/opt/elassandra/data
ports:
- 7000:7000
- 7001:7001
- 7199:7199
- 9042:9042
- 9160:9160
- 9200:9200
- 9300:9300
networks:
- backend
elasticsearch:
image: elastichq/elasticsearch-hq:release-v3.5.12
container_name: 'hex-elasticsearch'
restart: unless-stopped
ports:
- 5000:5000
links:
- elassandra
depends_on:
- elassandra
networks:
- backend
redis:
image: library/redis:6.0.4
container_name: 'hex-redis'
restart: unless-stopped
volumes:
- ./docker/redis/data:/data
ports:
- ${REDIS_PORT}:6379
networks:
- backend
rabbitmq:
image: library/rabbitmq:3.7.5-management
container_name: 'hex-rabbitmq'
environment:
RABBITMQ_ERLANG_COOKIE: ${RABBITMQ_ERLANG_COOKIE}
RABBITMQ_DEFAULT_USER: ${RABBIT_USER}
RABBITMQ_DEFAULT_PASS: ${RABBIT_PASSWORD}
RABBITMQ_DEFAULT_VHOST: ${RABBITMQ_DEFAULT_VHOST}
ports:
- 15672:15672
- 5672:5672
volumes:
- ./docker/rabbitmq/log:/var/log/rabbitmq
- ./docker/rabbitmq/schema:/var/lib/rabbitmq/schema
- ./docker/rabbitmq/config:/var/lib/rabbitmq/config
- ./docker/rabbitmq/mnesia:/var/lib/rabbitmq/mnesia
- ./docker/rabbitmq/enabled_plugins:/etc/rabbitmq/enabled_plugins
networks:
- backend
influxdb:
image: library/influxdb:1.7.10
container_name: 'hex-influxdb'
ports:
- 8083:8083
- 8086:8086
- 8090:8090
volumes:
- ./docker/influxdb/data:/var/lib/influxdb
- ./docker/influxdb/log:/var/log/influxdb
environment:
INFLUXDB_REPORTING_DISABLED: ${INFLUXDB_REPORTING_DISABLED}
INFLUXDB_DB: ${INFLUXDB_DB}
INFLUXDB_USER: ${INFLUXDB_USER}
INFLUXDB_USER_PASSWORD: ${INFLUXDB_USER_PASSWORD}
networks:
- backend
chronograf:
image: library/chronograf:0.12
container_name: 'hex-chronograf'
volumes:
- ./docker/chronograf/data:/var/lib/chronograf
links:
- influxdb
depends_on:
- influxdb
ports:
- 10000:10000
networks:
- backend
kapacitor:
image: library/kapacitor:0.12
container_name: 'hex-kapacitor'
environment:
KAPACITOR_HOSTNAME: kapacitor
KAPACITOR_INFLUXDB_0_URLS_0: http://influxdb:8086
volumes:
- ./docker/kapacitor/data:/var/lib/kapacitor
links:
- influxdb
depends_on:
- influxdb
ports:
- 9092:9092
networks:
- backend
telegraf:
image: library/telegraf:1.14.3
container_name: 'hex-telegraf'
volumes:
- ./docker/telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
- /var/run/docker.sock:/var/run/docker.sock
links:
- redis
- rabbitmq
- mongodb
- influxdb
- grafana
- elassandra
- core
depends_on:
- redis
- rabbitmq
- mongodb
- influxdb
- grafana
- elassandra
- core
ports:
- 8092:8092/udp
- 8094:8094
- 8125:8125/udp
environment:
INFLUXDB_URI: ${INFLUXDB_URI}
MONGO_HOST: ${MONGO_HOST}:${MONGO_PORT}
networks:
- backend
socketio-client-tool:
image: amritb/socketio-client-tool:latest
container_name: 'hex-socket-client'
ports:
- 8002:8080
networks:
- backend
core:
image: koushamad/hexagonal-core:latest
build:
context: .
args:
PKG: core
container_name: 'hex-core'
restart: unless-stopped
ports:
- 8080:80
- 8081:81
depends_on:
- redis
- rabbitmq
- mongodb
- elassandra
volumes:
- ./docker/application/log:/var/log/hex
environment:
PKG: core
APP_ENV: ${APP_ENV}
MONGO_URL: ${MONGO_HOST}
REDIS_URL: ${REDIS_HOST}:${REDIS_PORT}
RABBIT_URL: amqp://${RABBIT_USER}:${RABBIT_PASSWORD}@${RABBIT_HOST}:5672/
networks:
- backend
networks:
backend: