forked from sourcefuse/loopback4-microservice-catalog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
777 lines (727 loc) · 20.6 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
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
version: '3.4'
x-auth-variables: &auth-variables
NODE_ENV: dev
LOG_LEVEL: debug
DB_HOST: postgres
DB_PORT: 5432
DB_USER: ${POSTGRES_USER:-postgres}
DB_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
DB_DATABASE: authentication_db
DB_SCHEMA: main
JWT_SECRET: i_am_a_strong_secret
JWT_ISSUER: https://loopback4-microservice-catalog
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_URL:
REDIS_PASSWORD:
REDIS_DB: 0
USER_TEMP_PASSWORD: tempP@ssw0rd
GOOGLE_AUTH_URL:
GOOGLE_AUTH_CLIENT_ID:
GOOGLE_AUTH_CLIENT_SECRET:
GOOGLE_AUTH_TOKEN_URL:
GOOGLE_AUTH_CALLBACK_URL:
LOCALE: en
FORGOT_PASSWORD_LINK_EXPIRY:
KEYCLOAK_HOST: test
KEYCLOAK_REALM: test
KEYCLOAK_CLIENT_ID: test
KEYCLOAK_CLIENT_SECRET: test
KEYCLOAK_CALLBACK_URL: test
RATE_LIMITER_WINDOW_MS: 100
RATE_LIMITER_MAX_REQS: 100
X_FRAME_OPTIONS: SAMEORIGIN
x-workflow-variables: &workflow-variables
NODE_ENV: dev
LOG_LEVEL: debug
DB_HOST: postgres
DB_PORT: 5432
DB_USER: ${POSTGRES_USER:-postgres}
DB_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
DB_DATABASE: workflow_db
DB_SCHEMA: main
CAMUNDA_URL: http://camunda:8080/engine-rest
x-audit-variables: &audit-variables
NODE_ENV: dev
LOG_LEVEL: debug
DB_HOST: postgres
DB_PORT: 5432
DB_USER: ${POSTGRES_USER:-postgres}
DB_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
DB_DATABASE: audit_db
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_URL:
REDIS_PASSWORD: test
REDIS_DB: 0
JWT_SECRET: i_am_a_strong_secret
JWT_ISSUER: https://loopback4-microservice-catalog
x-pubnub-variables: &pubnub-variables
NODE_ENV: dev
LOG_LEVEL: debug
DB_HOST: postgres
DB_PORT: 5432
DB_USER: ${POSTGRES_USER:-postgres}
DB_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
DB_DATABASE: pubnub_db
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_URL:
REDIS_PASSWORD:
REDIS_DB: 0
JWT_SECRET: i_am_a_strong_secret
JWT_ISSUER: https://loopback4-microservice-catalog
x-feature-toggle-variables: &feature-toggle-variables
NODE_ENV: dev
LOG_LEVEL: debug
DB_HOST: postgres
DB_PORT: 5432
DB_USER: ${POSTGRES_USER:-postgres}
DB_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
DB_DATABASE: feature_toggle_db
JWT_SECRET: i_am_a_strong_secret
REDIS_PASSWORD:
REDIS_DATABASE: 0
JWT_ISSUER: https://loopback4-microservice-catalog
x-scheduler-variables: &scheduler-variables
NODE_ENV: dev
LOG_LEVEL: debug
DB_HOST: postgres
DB_PORT: 5432
DB_USER: ${POSTGRES_USER:-postgres}
DB_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
DB_DATABASE: scheduler_db
DB_SCHEMA: main
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_URL:
REDIS_PASSWORD:
REDIS_DATABASE: 0
JWT_SECRET: i_am_a_strong_secret
JWT_ISSUER: https://loopback4-microservice-catalog
x-video-variables: &video-variables
VONAGE_API_KEY: 0
VONAGE_API_SECRET: abc
TIME_TO_START: 10
DB_HOST: postgres
DB_PORT: 5432
DB_USER: ${POSTGRES_USER:-postgres}
DB_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
DB_DATABASE: video_db
DB_SCHEMA: main
JWT_SECRET: i_am_a_strong_secret
JWT_ISSUER: https://loopback4-microservice-catalog
x-in-mail-variables: &in-mail-variables
NODE_ENV: dev
LOG_LEVEL: debug
DB_HOST: postgres
DB_PORT: 5432
DB_USER: ${POSTGRES_USER:-postgres}
DB_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
DB_DATABASE: in_mail_db
DB_SCHEMA: main
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_URL:
REDIS_PASSWORD:
REDIS_DATABASE: 0
JWT_SECRET: i_am_a_strong_secret
JWT_ISSUER: https://loopback4-microservice-catalog
x-payment-backend-variables: &payment-backend-variables
NODE_ENV: dev
LOG_LEVEL: debug
DB_HOST: postgres
DB_PORT: 5432
DB_USER: ${POSTGRES_USER:-postgres}
DB_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
DB_DATABASE: payment_db
DB_SCHEMA: main
SUCCESS_CALLBACK_URL: http://localhost:3000
FAILURE_CALLBACK_URL: http://localhost:3000
JWT_SECRET: i_am_a_strong_secret
JWT_ISSUER: https://loopback4-microservice-catalog
x-search-ms-variables: &search-ms-variables
NODE_ENV: dev
LOG_LEVEL: debug
DB_HOST: postgres
DB_PORT: 5432
DB_USER: ${POSTGRES_USER:-postgres}
DB_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
DB_DATABASE: search_db
DB_SCHEMA: main
x-chat-notif-facade-variables: &chat-notif-facade-variables
NODE_ENV: dev
LOG_LEVEL: debug
NOTIF_SERVICE_URL: http://localhost:3052
CHAT_SERVICE_URL: http://localhost:3051
AUTH_DB_HOST: redis
AUTH_DB_PORT: 6379
AUTH_DB_PASSWORD:
AUTH_DB_DATABASE: 0
JWT_SECRET: i_am_a_strong_secret
JWT_ISSUER: https://loopback4-microservice-catalog
x-chat-notif-facade-chat-variables: &chat-notif-facade-chat-variables
NODE_ENV: dev
LOG_LEVEL: info
CHAT_DB_HOST: postgres
CHAT_DB_PORT: 5432
CHAT_DB_USER: ${POSTGRES_USER:-postgres}
CHAT_DB_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
CHAT_DB_DATABASE: chat_db
CHAT_DB_SCHEMA: main
AUTHCACHE_DB_HOST: redis
AUTHCACHE_DB_PORT: 6379
AUTHCACHE_DB_PASSWORD:
AUTHCACHE_DB_DATABASE: 0
REDIS_PASSWORD:
REDIS_DATABASE: 0
JWT_SECRET: i_am_a_strong_secret
JWT_ISSUER: https://loopback4-microservice-catalog
x-chat-notif-facade-notif-variables: &chat-notif-facade-notif-variables
NODE_ENV: dev
LOG_LEVEL: info
NOTIF_DB_HOST: postgres
NOTIF_DB_PORT: 5432
NOTIF_DB_USER: ${POSTGRES_USER:-postgres}
NOTIF_DB_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
NOTIF_DB_DATABASE: notifdb
AUTHCACHE_DB_HOST: redis
AUTHCACHE_DB_PORT: 6379
AUTHCACHE_DB_PASSWORD:
AUTHCACHE_DB_DATABASE: 0
NOTIFCACHE_DB_HOST: redis
NOTIFCACHE_DB_PORT: 6379
NOTIFCACHE_DB_PASSWORD:
NOTIFCACHE_DB_DATABASE: 0
PUBNUB_SUBSCRIBE_KEY: sub-c-795ac30a-1d26-11ec-ad6d-3eee4c94e219
PUBNUB_PUBLISH_KEY: pub-c-64a4aaf2-20d5-481a-b4d5-15b06b441883
UUID: 381f84ff-d68d-1997-5d8a-bb4c09165219
JWT_SECRET: i_am_a_strong_secret
JWT_ISSUER: https://loopback4-microservice-catalog
x-cache-variables: &cache-variables
NODE_ENV: dev
LOG_LEVEL: debug
DB_HOST: postgres
DB_PORT: 5432
DB_USER: ${POSTGRES_USER:-postgres}
DB_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
DB_DATABASE: cache_db
DB_SCHEMA: main
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_URL:
REDIS_DATABASE: 0
REDIS_PASS:
x-user-tenant-variables: &user-tenant-variables
NODE_ENV: dev
LOG_LEVEL: debug
DB_HOST: postgres
DB_PORT: 5432
DB_USER: ${POSTGRES_USER:-postgres}
DB_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
DB_DATABASE: authentication_db
DB_SCHEMA: main
JWT_SECRET: i_am_a_strong_secret
JWT_ISSUER: https://loopback4-microservice-catalog
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_URL:
REDIS_PASSWORD:
REDIS_DB: 0
USER_TEMP_PASSWORD: tempP@ssw0rd
SUCCESS_CALLBACK_URL: http://localhost:3000
FAILURE_CALLBACK_URL: http://localhost:3000
services:
chat-notification-pubnub-example:
image: ${REGISTRY:-localhost:32000}/chat-notification-pubnub-example
build:
context: ./chat-notification-pubnub-example/facade
dockerfile: Dockerfile
ports:
- '3050:3000'
networks:
- sandbox
environment: *chat-notif-facade-variables
depends_on:
- postgres
- redis
- postgres_orchestrator
- facade-chat-service
- facade-notification-service
restart: on-failure
facade-chat-service:
image: ${REGISTRY:-localhost:32000}/facade-chat-service
build:
context: ./chat-notification-pubnub-example/services/chat-service
dockerfile: Dockerfile
ports:
- '3051:3000'
networks:
- sandbox
environment: *chat-notif-facade-chat-variables
depends_on:
- postgres
- redis
- postgres_orchestrator
- facade-chat-migration
restart: on-failure
facade-chat-migration:
image: ${REGISTRY:-localhost:32000}/facade-chat-service
build:
context: ./chat-notification-pubnub-example/services/chat-service
dockerfile: Dockerfile
command: sh -c "sleep 60 && npm run db:migrate"
environment: *chat-notif-facade-chat-variables
depends_on:
- postgres
- postgres_orchestrator
networks:
- sandbox
restart: on-failure
facade-notification-service:
image: ${REGISTRY:-localhost:32000}/facade-notification-service
build:
context: ./chat-notification-pubnub-example/services/notifications-service
dockerfile: Dockerfile
ports:
- '3052:3000'
networks:
- sandbox
environment: *chat-notif-facade-notif-variables
depends_on:
- postgres
- redis
- postgres_orchestrator
- facade-notification-migration
restart: on-failure
facade-notification-migration:
image: ${REGISTRY:-localhost:32000}/facade-notification-service
build:
context: ./chat-notification-pubnub-example/services/notifications-service
dockerfile: Dockerfile
command: sh -c "sleep 60 && npm run db:migrate"
environment: *chat-notif-facade-notif-variables
depends_on:
- postgres
- postgres_orchestrator
networks:
- sandbox
restart: on-failure
auth-multitenant-example:
image: ${REGISTRY:-localhost:32000}/auth-multitenant-example
build:
context: ./auth-multitenant-example
dockerfile: Dockerfile
ports:
- '3000:3000'
networks:
- sandbox
environment: *auth-variables
depends_on:
- postgres
- redis
- postgres_orchestrator
- auth-multitenant-migration
restart: on-failure
auth-multitenant-migration:
image: ${REGISTRY:-localhost:32000}/auth-multitenant-example
build:
context: ./auth-multitenant-example
dockerfile: Dockerfile
command: sh -c "sleep 60 && npm run db:migrate"
environment: *auth-variables
depends_on:
- postgres
- postgres_orchestrator
networks:
- sandbox
restart: on-failure
notification-socket-example:
image: ${REGISTRY:-localhost:32000}/notification-socket-example
build:
context: ./notification-socket-example
dockerfile: Dockerfile
ports:
- '3030:3000'
networks:
- sandbox
environment:
NODE_ENV: dev
LOG_LEVEL: debug
DB_HOST: postgres
DB_PORT: 5432
DB_USER: ${POSTGRES_USER:-postgres}
DB_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
DB_DATABASE: notification_db
DB_SCHEMA: public
JWT_SECRET: i_am_a_strong_secret
JWT_ISSUER: https://loopback4-microservice-catalog
depends_on:
- postgres
workflow-ms-example:
image: ${REGISTRY:-localhost:32000}/workflow-ms-example
build:
context: ./workflow-ms-example
dockerfile: Dockerfile
args:
- WORKFLOW_MIGRATION_SKIP=true
ports:
- '3031:3000'
networks:
- sandbox
environment: *workflow-variables
depends_on:
- postgres
- camunda
- postgres_orchestrator
- workflow-migration
restart: on-failure
workflow-migration:
image: ${REGISTRY:-localhost:32000}/workflow-ms-example
build:
context: ./workflow-ms-example
dockerfile: Dockerfile
command: sh -c "sleep 60 && npm run db:migrate"
environment: *workflow-variables
depends_on:
- postgres
- postgres_orchestrator
networks:
- sandbox
restart: on-failure
audit-ms-example:
image: ${REGISTRY:-localhost:32000}/audit-ms-example
build:
context: ./audit-ms-example
dockerfile: Dockerfile
ports:
- '3032:3000'
networks:
- sandbox
environment: *audit-variables
depends_on:
- postgres
- postgres_orchestrator
- audit-ms-migration
restart: on-failure
search-ms-example:
image: ${REGISTRY:-localhost:32000}/search-ms-example
build:
context: ./search-ms-example
dockerfile: Dockerfile
ports:
- '3037:3000'
networks:
- sandbox
environment: *search-ms-variables
depends_on:
- postgres
- postgres_orchestrator
- search-ms-migration
restart: on-failure
search-ms-migration:
image: ${REGISTRY:-localhost:32000}/search-ms-example
command: sh -c "sleep 60 && npm run db:migrate"
build:
context: ./search-ms-example
dockerfile: Dockerfile
environment: *search-ms-variables
depends_on:
- postgres
- postgres_orchestrator
networks:
- sandbox
restart: on-failure
search-client-example:
image: ${REGISTRY:-localhost:32000}/search-client-example
build:
context: ./search-client-example
dockerfile: Dockerfile
ports:
- '4200:4200'
networks:
- sandbox
restart: on-failure
user-onboarding-example:
image: ${REGISTRY:-localhost:32000}/user-onboarding-example
build:
context: ./user-onboarding-example
dockerfile: Dockerfile
ports:
- '4201:4200'
networks:
- sandbox
restart: on-failure
audit-ms-migration:
image: ${REGISTRY:-localhost:32000}/audit-ms-example
command: sh -c "sleep 60 && npm run db:migrate"
build:
context: ./audit-ms-example
dockerfile: Dockerfile
environment: *audit-variables
depends_on:
- postgres
- postgres_orchestrator
networks:
- sandbox
restart: on-failure
pubnub-example:
image: ${REGISTRY:-localhost:32000}/pubnub-example
build:
context: ./pubnub-example
dockerfile: Dockerfile
ports:
- '3036:3000'
networks:
- sandbox
environment: *pubnub-variables
depends_on:
- postgres
- postgres_orchestrator
- pubnub-migration
restart: on-failure
pubnub-migration:
image: ${REGISTRY:-localhost:32000}/pubnub-example:latest
command: sh -c "sleep 60 && npm run db:migrate"
build:
context: ./pubnub-example
dockerfile: Dockerfile
environment: *pubnub-variables
depends_on:
- postgres
- postgres_orchestrator
networks:
- sandbox
restart: on-failure
feature-toggle-example:
image: ${REGISTRY:-localhost:32000}/feature-toggle-example
build:
context: ./feature-toggle-example
dockerfile: Dockerfile
ports:
- '3039:3000'
networks:
- sandbox
environment: *feature-toggle-variables
depends_on:
- postgres
- postgres_orchestrator
- feature-toggle-migration
restart: on-failure
feature-toggle-migration:
image: ${REGISTRY:-localhost:32000}/feature-toggle:latest
command: sh -c "sleep 60 && npm run db:migrate"
build:
context: ./feature-toggle-example
dockerfile: Dockerfile
environment: *feature-toggle-variables
depends_on:
- postgres
- postgres_orchestrator
networks:
- sandbox
restart: on-failure
scheduler-example:
image: ${REGISTRY:-localhost:32000}/scheduler-example
build:
context: ./scheduler-example
dockerfile: Dockerfile
ports:
- '3034:3000'
networks:
- sandbox
environment: *scheduler-variables
depends_on:
- postgres
- postgres_orchestrator
restart: on-failure
video-conferencing-ms-example:
image: ${REGISTRY:-localhost:32000}/video-conferencing-ms-example
build:
context: ./video-conferencing-ms-example
dockerfile: Dockerfile
ports:
- '3040:3000'
networks:
- sandbox
environment: *video-variables
depends_on:
- postgres
- postgres_orchestrator
restart: on-failure
video-conferencing-ms-migration:
image: ${REGISTRY:-localhost:32000}/video-conferencing-ms-example
build:
context: ./video-conferencing-ms-example
dockerfile: Dockerfile
command: sh -c "sleep 60 && npm run db:migrate"
environment: *video-variables
depends_on:
- postgres
- postgres_orchestrator
networks:
- sandbox
restart: on-failure
in-mail-example:
image: ${REGISTRY:-localhost:32000}/in-mail-example
build:
context: ./in-mail-example
dockerfile: Dockerfile
ports:
- '3033:3000'
networks:
- sandbox
environment: *in-mail-variables
depends_on:
- postgres
- postgres_orchestrator
restart: on-failure
payment-backend-example:
image: ${REGISTRY:-localhost:32000}/payment-example/backend
build:
context: ./payment-example/backend
dockerfile: Dockerfile
ports:
- '3042:3000'
networks:
- sandbox
environment: *payment-backend-variables
depends_on:
- postgres
- postgres_orchestrator
- payment-backend-migration
restart: on-failure
payment-backend-migration:
image: ${REGISTRY:-localhost:32000}/payment-example/backend
build:
context: ./payment-example/backend
dockerfile: Dockerfile
command: sh -c "sleep 60 && npm run db:migrate"
environment: *payment-backend-variables
depends_on:
- postgres
- postgres_orchestrator
networks:
- sandbox
restart: on-failure
cache-example:
image: ${REGISTRY:-localhost:32000}/cache-example
build:
context: ./cache-example
dockerfile: Dockerfile
ports:
- '3041:3000'
networks:
- sandbox
environment: *cache-variables
depends_on:
- cache-migration
- postgres
- redis
- postgres_orchestrator
restart: on-failure
cache-migration:
image: ${REGISTRY:-localhost:32000}/cache-example
build:
context: ./cache-example
dockerfile: Dockerfile
command: sh -c "sleep 60 && npm run db:migrate"
environment: *cache-variables
depends_on:
- postgres
- postgres_orchestrator
networks:
- sandbox
restart: on-failure
user-tenant-example:
image: ${REGISTRY:-localhost:32000}/user-tenant-example
build:
context: ./user-tenant-example
dockerfile: Dockerfile
ports:
- '3043:3000'
networks:
- sandbox
environment: *user-tenant-variables
depends_on:
- postgres
- postgres_orchestrator
restart: on-failure
redis:
image: 'redis:alpine'
ports:
- '6379:6379'
networks:
- sandbox
camunda:
container_name: camunda_engine
image: camunda/camunda-bpm-platform:run-latest
ports:
- '8080:8080'
networks:
- sandbox
restart: always
postgres:
container_name: postgres_container
image: postgres
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
PGDATA: /data/postgres
volumes:
- postgres:/data/postgres
ports:
- '5432:5432'
networks:
- sandbox
restart: always
postgres_orchestrator:
container_name: postgres_orchestrator
image: postgres
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
PGDATA: /data/postgres
PGPASSWORD: ${POSTGRES_PASSWORD:-changeme}
ports:
- '5433:5433'
networks:
- sandbox
depends_on:
- postgres
command: >
bash -c "export PGPASSWORD=${POSTGRES_PASSWORD:-changeme} && sleep 30 &&
psql -U ${POSTGRES_USER:-postgres} -d postgres -h postgres -c 'create database authentication_db' &&
psql -U ${POSTGRES_USER:-postgres} -d postgres -h postgres -c 'create database notification_db' &&
psql -U ${POSTGRES_USER:-postgres} -d postgres -h postgres -c 'create database workflow_db' &&
psql -U ${POSTGRES_USER:-postgres} -d postgres -h postgres -c 'create database audit_db' &&
psql -U ${POSTGRES_USER:-postgres} -d postgres -h postgres -c 'create database pubnub_db' &&
psql -U ${POSTGRES_USER:-postgres} -d postgres -h postgres -c 'create database feature_toggle_db' &&
psql -U ${POSTGRES_USER:-postgres} -d postgres -h postgres -c 'create database scheduler_db' &&
psql -U ${POSTGRES_USER:-postgres} -d postgres -h postgres -c 'create database in_mail_db'&&
psql -U ${POSTGRES_USER:-postgres} -d postgres -h postgres -c 'create database search_db'&&
psql -U ${POSTGRES_USER:-postgres} -d postgres -h postgres -c 'create database video_db'&&
psql -U ${POSTGRES_USER:-postgres} -d postgres -h postgres -c 'create database chat_notif_facade_db' &&
psql -U ${POSTGRES_USER:-postgres} -d postgres -h postgres -c 'create database chat_db' &&
psql -U ${POSTGRES_USER:-postgres} -d postgres -h postgres -c 'create database payment_db' &&
psql -U ${POSTGRES_USER:-postgres} -d postgres -h postgres -c 'create database notifdb' &&
psql -U ${POSTGRES_USER:-postgres} -d postgres -h postgres -c 'create database cache_db'"
pgadmin:
container_name: pgadmin_container
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:[email protected]}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin}
volumes:
- pgadmin:/root/.pgadmin
ports:
- '${PGADMIN_PORT:-5050}:80'
networks:
- sandbox
restart: always
networks:
sandbox:
driver: bridge
volumes:
postgres:
pgadmin: