-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
511 lines (463 loc) · 10.2 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
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
version: '3.7'
volumes:
cassandra-data: {}
cassandra-post-data: {}
cassandra-ad-data: {}
cassandra-story-data: {}
redis-data: {}
redis.conf: {}
story-redis-data: {}
story-redis.conf: {}
auth-redis-data: {}
auth-redis.conf: {}
follow-data: {}
search-data: {}
user-data: {}
auth-data: {}
webshop-mongo-data: {}
etc-krakend : {}
notification-data: {}
webshop-data: {}
webshop-redis-data: {}
webshop-redis.conf: {}
data_exist:
saga-redis-data: {}
saga-redis.conf: {}
message-data: {}
neo4j-data: {}
grafana: {}
networks:
demo:
name: demo
driver: bridge
storynetwork:
name: storynetwork
driver: bridge
node_net:
ipam:
driver: default
config:
- subnet: 172.28.0.0/16
services:
prometheus:
image: prom/prometheus:latest
volumes:
- ./prometheus:/etc/prometheus/
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
ports:
- 9090:9090
depends_on:
- authms
networks:
- demo
grafana:
image: grafana/grafana:latest
ports:
- 3000:3000
depends_on:
- prometheus
networks:
- demo
cassandrapost:
image: cassandra:3.11.8 # better to use a specific version, if you want to control upgrades
container_name: cassandrapost
mem_limit: 2g # It's not strictly required, but it's better to have some memory limit
ports:
- 7000:7000
expose:
- 7000
networks:
- demo
# node_net:
# ipv4_address: 172.28.1.11
volumes:
- cassandra-post-data:/var/lib/cassandra
restart: on-failure
cassandrastory:
image: cassandra:3.11.8 # better to use a specific version, if you want to control upgrades
container_name: cassandrastory
mem_limit: 2g # It's not strictly required, but it's better to have some memory limit
ports:
- 7001:9042
expose:
- 7001
networks:
- demo
# node_net:
# ipv4_address: 172.28.1.11
volumes:
- cassandra-story-data:/var/lib/cassandra
apigateway:
image: jelenavlajkov/kraken:latest
container_name: apigateway
ports:
- 8080:8080
environment:
- DOCKER_ENV=true
networks:
- demo
restart: on-failure
frontend:
image: jelenavlajkov/nishtagramfrontend:latest
container_name: frontend
ports:
- 4200:4200
networks:
- demo
restart: on-failure
frontend-webshop:
image: frontend-webshop
container_name: frontend-webshop
ports:
- 4300:4200
networks:
- demo
restart: on-failure
authpostgres:
image: postgres:latest
container_name: authpostgres
ports:
- 5432:5432
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "root"
POSTGRES_DB: "authentication"
networks:
- demo
volumes:
- auth-data:/var/lib/auth
restart: on-failure
sagaredis:
image: "redis:alpine"
command: redis-server
ports:
- "6381:6379"
volumes:
- saga-redis-data:/var/lib/redis
- saga-redis.conf:/usr/local/etc/redis/redis.conf
environment:
- REDIS_REPLICATION_MODE=master
networks:
- demo
authredis:
image: "redis:alpine"
command: redis-server
container_name: authredis
ports:
- "6380:6379"
volumes:
- auth-redis-data:/var/lib/redis
- auth-redis.conf:/usr/local/etc/redis/redis.conf
environment:
- REDIS_REPLICATION_MODE=master
networks:
- demo
restart: on-failure
storyredis:
image: "redis:alpine"
command: redis-server
container_name: storyredis
ports:
- "6378:6379"
volumes:
- story-redis-data:/var/lib/redis
- story-redis.conf:/usr/local/etc/redis/redis.conf
environment:
- REDIS_REPLICATION_MODE=master
networks:
- demo
restart: on-failure
mongofollow:
image: 'mongo:4.2.6-bionic'
container_name: mongofollow
ports:
- '27017:27017'
networks:
- demo
volumes:
- follow-data:/data/db
restart: on-failure
mongouser:
image: 'mongo:4.2.6-bionic'
container_name: mongouser
ports:
- '27018:27017'
networks:
- demo
volumes:
- user-data:/data/db
restart: on-failure
authms:
image: jelenavlajkov/authms:latest
container_name: authms
depends_on:
- authredis
- authpostgres
- sagaredis
- tracing
environment:
- JAEGER_SERVICE_NAME=auth_service
- JAEGER_AGENT_HOST=tracing
- JAEGER_AGENT_PORT=6831
- JAEGER_SAMPLER_MANAGER_HOST_PORT=jaeger:5778
- JAEGER_SAMPLER_TYPE=const
- JAEGER_SAMPLER_PARAM=1
- PORT=8091
- USER_DOMAIN=userms
- DOCKER_ENV=true
networks:
- demo
ports:
- 8091:8091
restart: on-failure
webshoppostgres:
image: postgres:latest
container_name: webshoppostgres
restart: always
ports:
- 5434:5432
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "root"
POSTGRES_DB: webshop
networks:
- demo
volumes:
- webshop-data:/var/lib/webshop
webshopredis:
image: "redis:alpine"
command: redis-server
ports:
- "6400:6379"
volumes:
- webshop-redis-data:/var/lib/redis
- webshop-redis.conf:/usr/local/etc/redis/redis.conf
environment:
- REDIS_REPLICATION_MODE=master
networks:
- demo
webshop:
image: jelenavlajkov/webshop:latest
container_name: webshop
depends_on:
- webshoppostgres
- webshopredis
- mongowebshop
environment:
- PORT=8099
- USER_DOMAIN=userms
- DOCKER_ENV=true
- NISHTAGRAM_DOMAIN=adms
networks:
- demo
ports:
- 8099:8099
restart: on-failure
volumes:
- ${PWD}/documents/:/root/src/documents/
adms:
image: jelenavlajkov/adms:latest
container_name: adms
depends_on:
- cassandrapost
environment:
- PORT=8093
- DOCKER_ENV=true
- POST_DOMAIN=postms
- STORY_DOMAIN=storyms
- USER_DOMAIN=userms
- SEARCH_DOMAIN=searchms
networks:
- demo
ports:
- 8093:8093
restart: on-failure
messagems:
image: jelenavlajkov/messagems:latest
container_name: messagems
depends_on:
- mongomessage
environment:
- PORT=8052
- DOCKER_ENV=true
- FOLLOW_DOMAIN=followms
- USER_DOMAIN=userms
networks:
- demo
ports:
- 8052:8052
restart: on-failure
mongonotification:
image: 'mongo:4.2.6-bionic'
container_name: mongonotification
ports:
- '27020:27017'
volumes:
- notification-data:/data/db
restart: on-failure
networks:
- demo
mongosearch:
image: 'mongo:4.2.6-bionic'
container_name: mongo-search
ports:
- "27019:27017"
volumes:
- search-data:/data/db
restart: always
networks:
- demo
mongowebshop:
image: 'mongo:4.2.6-bionic'
container_name: mongowebshop
ports:
- "27022:27017"
volumes:
- webshop-mongo-data:/data/db
restart: always
networks:
- demo
followms:
image: jelenavlajkov/followms:latest
container_name: followms
depends_on:
- mongofollow
environment:
- PORT=8089
- USER_DOMAIN=userms
- DOCKER_ENV=true
networks:
- demo
ports:
- 8089:8089
volumes:
- follow-data:/data/db:rw
restart: on-failure
userms:
image: jelenavlajkov/userms:latest
container_name: userms
depends_on:
- mongouser
environment:
- PORT=8082
- DOCKER_ENV=true
- AUTH_DOMAIN=authms
- FOLLOW_DOMAIN=followms
networks:
- demo
ports:
- 8082:8082
volumes:
- user-data:/data/db:rw
restart: on-failure
postms:
image: jelenavlajkov/postms:latest
container_name: postms
depends_on:
- cassandrapost
environment:
- PORT=8083
- USER_DOMAIN=userms
- FOLLOW_DOMAIN=followms
- DOCKER_ENV=true
networks:
- demo
ports:
- 8083:8083
volumes:
- cassandra-post-data:/data/db:rw
restart: on-failure
# storyms:
# image: jelenavlajkov/storyms:latest
# container_name: storyms
# depends_on:
# - cassandrastory
# environment:
# - PORT=8084
# - USER_DOMAIN=userms
# - FOLLOW_DOMAIN=followms
# - DOCKER_ENV=true
# networks:
# - demo
# ports:
# - 8084:8084
# volumes:
# - cassandra-story-data:/data/db:rw
# restart: on-failure
searchms:
image: jelenavlajkov/searchms:latest
container_name: searchms
depends_on:
- mongosearch
networks:
- demo
ports:
- 8087:8087
environment:
- DOCKER_ENV=true
volumes:
- search-data:/data/db:rw
restart: on-failure
notificationms:
image: jelenavlajkov/notificationms:latest
container_name: notificationms
depends_on:
- mongonotification
networks:
- demo
environment:
- DOCKER_ENV=true
ports:
- 8094:8094
volumes:
- notification-data:/data/db:rw
restart: on-failure
mongomessage:
image: 'mongo:4.2.6-bionic'
container_name: mongomessage
ports:
- '27021:27017'
volumes:
- message-data:/data/db
restart: on-failure
networks:
- demo
neo4j:
container_name: neo4j
image: neo4j
restart: always
environment:
- NEO4J_dbms_connector_bolt_advertised__address=0.0.0.0:7687
- NEO4J_dbms_connector_bolt_listen__address=0.0.0.0:7687
- NEO4J_AUTH=neo4j/root
networks:
- demo
ports:
- 7474:7474
- 7687:7687
volumes:
- type: volume
source: neo4j-data
target: /data
xmldb:
image: existdb/existdb:release
container_name: xmldb
restart: always
ports:
- 8095:8080
volumes:
- type: volume
source: data_exist
target: /exist-data
networks:
- demo
tracing:
image: jaegertracing/all-in-one
container_name: jaeger
ports:
- "6831:6831/udp"
- "16686:16686"
networks:
- demo