-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
725 lines (690 loc) · 21.4 KB
/
docker-compose.yml
File metadata and controls
725 lines (690 loc) · 21.4 KB
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
name: 'mint'
services:
web:
build:
context: apps/web
dockerfile: Dockerfile
container_name: mint-web
networks: [mint]
ports:
- '3000:3000'
environment:
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-http://localhost}
NODE_ENV: production
depends_on:
- nginx
restart: unless-stopped
nginx:
image: nginx:1.29-alpine
container_name: mint-nginx
networks: [mint]
ports:
- '80:80'
# For SSL: also expose 443 and mount ./infra/nginx/certs:/etc/nginx/certs:ro
volumes:
- ./infra/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- auth
- wallet
restart: unless-stopped
healthcheck:
test: ['CMD', 'wget', '-qO-', 'http://127.0.0.1/health']
interval: 10s
timeout: 3s
retries: 3
kafka:
image: confluentinc/cp-kafka:7.9.6
container_name: mint-kafka
hostname: kafka
networks: [mint]
environment:
KAFKA_NODE_ID: 1
KAFKA_PROCESS_ROLES: broker,controller
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092,CONTROLLER://0.0.0.0:9093
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_CONTROLLER_QUORUM_VOTERS: 1@kafka:9093
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,CONTROLLER:PLAINTEXT
KAFKA_CONTROLLER_LISTENER_NAMES: CONTROLLER
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true'
CLUSTER_ID: 'eYjp31bQQTit57aK84wZcw'
healthcheck:
test:
[
'CMD',
'kafka-topics',
'--bootstrap-server',
'localhost:9092',
'--list',
]
interval: 10s
timeout: 10s
retries: 10
start_period: 30s
restart: unless-stopped
kafka-init:
image: confluentinc/cp-kafka:7.9.6
container_name: mint-kafka-init
networks: [mint]
depends_on:
kafka:
condition: service_healthy
command: >
bash -c "
kafka-topics --bootstrap-server kafka:9092 --create --if-not-exists --topic auth.events --partitions 3 --replication-factor 1 &&
kafka-topics --bootstrap-server kafka:9092 --create --if-not-exists --topic kyc.events --partitions 3 --replication-factor 1 &&
kafka-topics --bootstrap-server kafka:9092 --create --if-not-exists --topic transaction.events --partitions 3 --replication-factor 1 &&
kafka-topics --bootstrap-server kafka:9092 --create --if-not-exists --topic wallet.events --partitions 3 --replication-factor 1 &&
kafka-topics --bootstrap-server kafka:9092 --create --if-not-exists --topic analytics.events --partitions 3 --replication-factor 1 &&
kafka-topics --bootstrap-server kafka:9092 --create --if-not-exists --topic social.events --partitions 3 --replication-factor 1 &&
kafka-topics --bootstrap-server kafka:9092 --create --if-not-exists --topic webhook.events --partitions 1 --replication-factor 1 &&
kafka-topics --bootstrap-server kafka:9092 --create --if-not-exists --topic admin.events --partitions 1 --replication-factor 1 &&
kafka-topics --bootstrap-server kafka:9092 --create --if-not-exists --topic audit.events --partitions 1 --replication-factor 1 &&
echo All topics created
"
restart: no
postgres:
image: postgres:18.3-alpine
container_name: mint-postgres
networks: [mint]
environment:
POSTGRES_USER: mint-dev
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
volumes:
- postgres-data:/var/lib/postgresql/data
- ./infra/postgres/init.sql:/docker-entrypoint-initdb.d/init.sql:ro
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 5s
timeout: 3s
retries: 10
restart: unless-stopped
redis:
image: redis:8-alpine
container_name: mint-redis
networks: [mint]
command: redis-server --appendonly yes
volumes:
- redis-data:/data
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 5s
timeout: 3s
retries: 5
restart: unless-stopped
minio:
# To switch to AWS S3: remove this service and set S3_ENDPOINT, S3_ACCESS_KEY,
# S3_SECRET_KEY env vars on the kyc service.
image: minio/minio:RELEASE.2025-09-07T16-13-09Z
container_name: mint-minio
networks: [mint]
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
volumes:
- minio-data:/data
command: server /data --console-address ":9001"
healthcheck:
test: ['CMD', 'mc', 'ready', 'local']
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
minio-init:
image: minio/mc:RELEASE.2025-08-13T08-35-41Z
container_name: mint-minio-init
networks: [mint]
depends_on:
minio:
condition: service_healthy
entrypoint: >
sh -c "
mc alias set local http://minio:9000 minioadmin minioadmin &&
mc mb --ignore-existing local/mint-kyc-docs &&
mc anonymous set none local/mint-kyc-docs &&
echo MinIO bucket ready
"
restart: no
otel-collector:
image: otel/opentelemetry-collector-contrib:latest
container_name: mint-otel-collector
networks: [mint]
volumes:
- ./infra/otel/otel-collector.yml:/etc/otel-collector.yml:ro
command: ['--config=/etc/otel-collector.yml']
depends_on:
- tempo
restart: unless-stopped
tempo:
image: grafana/tempo:2.4.1
container_name: mint-tempo
networks: [mint]
volumes:
- ./infra/tempo/tempo.yml:/etc/tempo.yml:ro
command: ['-config.file=/etc/tempo.yml']
restart: unless-stopped
mailhog:
image: mailhog/mailhog:v1.0.1
container_name: mint-mailhog
networks: [mint]
ports:
- '8025:8025' # Web UI
restart: unless-stopped
grafana:
image: grafana/grafana:10.4.3
container_name: mint-grafana
networks: [mint]
ports:
- '4000:3000'
environment:
GF_SECURITY_ADMIN_USER: admin
GF_SECURITY_ADMIN_PASSWORD: ${GRAFANA_PASSWORD:-changeme}
volumes:
- ./infra/grafana/provisioning:/etc/grafana/provisioning:ro
depends_on:
- tempo
restart: unless-stopped
auth-migrate:
build:
context: .
dockerfile: apps/auth/Dockerfile
target: production
container_name: mint-auth-migrate
networks: [mint]
environment:
APP_PORT: '4001'
APP_HOST: 0.0.0.0
APP_RELOAD: 'false'
KEYS_DIR: /app/apps/auth/keys
FASTAUTH_SECRET: ${FASTAUTH_SECRET}
DATABASE_URL: postgresql+asyncpg://mint_auth_user:mint_auth_pass@postgres:5432/mint_auth
KAFKA_BROKERS: kafka:9092
depends_on:
postgres:
condition: service_healthy
command: ['uv', 'run', 'migrate']
restart: no
wallet-migrate:
build:
context: .
dockerfile: apps/wallet/Dockerfile
target: production
container_name: mint-wallet-migrate
networks: [mint]
environment:
APP_PORT: '4002'
APP_HOST: 0.0.0.0
APP_RELOAD: 'false'
DATABASE_URL: postgresql+asyncpg://mint_wallet_user:mint_wallet_pass@postgres:5432/mint_wallet
KAFKA_BROKERS: kafka:9092
depends_on:
postgres:
condition: service_healthy
command: ['uv', 'run', 'migrate']
restart: no
transactions-migrate:
build:
context: .
dockerfile: apps/transactions/Dockerfile
target: builder
container_name: mint-transactions-migrate
networks: [mint]
environment:
DATABASE_URL: postgresql://mint_txns_user:mint_txns_pass@postgres:5432/mint_txns
depends_on:
postgres:
condition: service_healthy
command: ['pnpm', 'migrate:transactions']
restart: no
fraud-migrate:
build:
context: .
dockerfile: apps/fraud/Dockerfile
target: builder
container_name: mint-fraud-migrate
networks: [mint]
environment:
DATABASE_URL: postgresql://mint_fraud_user:mint_fraud_pass@postgres:5432/mint_fraud
depends_on:
postgres:
condition: service_healthy
command: ['pnpm', 'migrate:fraud']
restart: no
kyc-migrate:
build:
context: .
dockerfile: apps/kyc/Dockerfile
target: builder
container_name: mint-kyc-migrate
networks: [mint]
environment:
DATABASE_URL: postgresql://mint_kyc_user:mint_kyc_pass@postgres:5432/mint_kyc
depends_on:
postgres:
condition: service_healthy
command: ['pnpm', 'migrate:kyc']
restart: no
analytics-migrate:
build:
context: .
dockerfile: apps/analytics/Dockerfile
target: builder
container_name: mint-analytics-migrate
networks: [mint]
environment:
DATABASE_URL: postgresql://mint_analytics_user:mint_analytics_pass@postgres:5432/mint_analytics
depends_on:
postgres:
condition: service_healthy
command: ['pnpm', 'migrate:analytics']
restart: no
notifications-migrate:
build:
context: .
dockerfile: apps/notifications/Dockerfile
target: builder
container_name: mint-notifications-migrate
networks: [mint]
environment:
DATABASE_URL: postgresql://mint_notifications_user:mint_notifications_pass@postgres:5432/mint_notifications
depends_on:
postgres:
condition: service_healthy
command: ['pnpm', 'migrate:notifications']
restart: no
social-migrate:
build:
context: .
dockerfile: apps/social/Dockerfile
target: builder
container_name: mint-social-migrate
networks: [mint]
environment:
DATABASE_URL: postgresql://mint_social_user:mint_social_pass@postgres:5432/mint_social
depends_on:
postgres:
condition: service_healthy
command: ['pnpm', 'migrate:social']
restart: no
webhook-migrate:
build:
context: .
dockerfile: apps/webhook/Dockerfile
target: builder
container_name: mint-webhook-migrate
networks: [mint]
environment:
DATABASE_URL: postgresql://mint_webhook_user:mint_webhook_pass@postgres:5432/mint_webhook
depends_on:
postgres:
condition: service_healthy
command: ['pnpm', 'migrate:webhook']
restart: no
audit-migrate:
build:
context: .
dockerfile: apps/audit/Dockerfile
target: builder
container_name: mint-audit-migrate
networks: [mint]
environment:
DATABASE_URL: postgresql://mint_audit_user:mint_audit_pass@postgres:5432/mint_audit
depends_on:
postgres:
condition: service_healthy
command: ['pnpm', 'run', 'migrate:audit']
restart: no
auth:
build:
context: .
dockerfile: apps/auth/Dockerfile
target: production
container_name: mint-auth
networks: [mint]
environment:
APP_PORT: '4001'
APP_HOST: 0.0.0.0
APP_RELOAD: 'false'
KEYS_DIR: /app/apps/auth/keys
FASTAUTH_SECRET: ${FASTAUTH_SECRET}
DATABASE_URL: postgresql+asyncpg://mint_auth_user:mint_auth_pass@postgres:5432/mint_auth
KAFKA_BROKERS: kafka:9092
SMTP_HOST: mailhog
SMTP_PORT: '1025'
SMTP_FROM: Mint <noreply@mint.dev>
OTEL_SERVICE_NAME: auth-service
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4318
OTEL_TRACES_EXPORTER: otlp
volumes:
- ./keys/private_key.pem:/app/apps/auth/keys/private_key.pem:ro
- ./keys/public_key.pem:/app/apps/auth/keys/public_key.pem:ro
depends_on:
postgres:
condition: service_healthy
kafka:
condition: service_healthy
kafka-init:
condition: service_completed_successfully
auth-migrate:
condition: service_completed_successfully
restart: unless-stopped
wallet:
build:
context: .
dockerfile: apps/wallet/Dockerfile
target: production
container_name: mint-wallet
networks: [mint]
environment:
APP_PORT: '4002'
APP_HOST: 0.0.0.0
APP_RELOAD: 'false'
DATABASE_URL: postgresql+asyncpg://mint_wallet_user:mint_wallet_pass@postgres:5432/mint_wallet
KAFKA_BROKERS: kafka:9092
OTEL_SERVICE_NAME: wallet-service
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4318
OTEL_TRACES_EXPORTER: otlp
depends_on:
postgres:
condition: service_healthy
kafka:
condition: service_healthy
kafka-init:
condition: service_completed_successfully
wallet-migrate:
condition: service_completed_successfully
restart: unless-stopped
transactions:
build:
context: .
dockerfile: apps/transactions/Dockerfile
target: production
container_name: mint-transactions
networks: [mint]
environment:
NODE_ENV: production
DATABASE_URL: postgresql://mint_txns_user:mint_txns_pass@postgres:5432/mint_txns
REDIS_URL: redis://redis:6379
KAFKA_BROKERS: kafka:9092
AUTH_JWKS_URL: http://auth:4001/.well-known/jwks.json
JWT_ISSUER: ${JWT_ISSUER:-mint-auth}
JWT_AUDIENCE: ${JWT_AUDIENCE:-mint-services}
WALLET_SERVICE_URL: wallet:50051
FRAUD_SERVICE_URL: fraud:50052
KYC_SERVICE_URL: kyc:50053
OTEL_SERVICE_NAME: transactions-service
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4318
OTEL_TRACES_EXPORTER: otlp
depends_on:
postgres:
condition: service_healthy
kafka:
condition: service_healthy
kafka-init:
condition: service_completed_successfully
transactions-migrate:
condition: service_completed_successfully
redis:
condition: service_healthy
wallet:
condition: service_started
restart: unless-stopped
fraud:
build:
context: .
dockerfile: apps/fraud/Dockerfile
target: production
container_name: mint-fraud
networks: [mint]
environment:
NODE_ENV: production
DATABASE_URL: postgresql://mint_fraud_user:mint_fraud_pass@postgres:5432/mint_fraud
REDIS_URL: redis://redis:6379
KAFKA_BROKERS: kafka:9092
AUTH_JWKS_URL: http://auth:4001/.well-known/jwks.json
FRAUD_BLOCK_THRESHOLD: '100'
FRAUD_REVIEW_THRESHOLD: '50'
OTEL_SERVICE_NAME: fraud-service
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4318
OTEL_TRACES_EXPORTER: otlp
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
fraud-migrate:
condition: service_completed_successfully
kafka:
condition: service_healthy
kafka-init:
condition: service_completed_successfully
restart: unless-stopped
kyc:
build:
context: .
dockerfile: apps/kyc/Dockerfile
target: production
container_name: mint-kyc
networks: [mint]
environment:
NODE_ENV: production
DATABASE_URL: postgresql://mint_kyc_user:mint_kyc_pass@postgres:5432/mint_kyc
REDIS_URL: redis://redis:6379
KAFKA_BROKERS: kafka:9092
AUTH_JWKS_URL: http://auth:4001/.well-known/jwks.json
JWT_ISSUER: ${JWT_ISSUER:-mint-auth}
JWT_AUDIENCE: ${JWT_AUDIENCE:-mint-services}
KYC_WEBHOOK_SECRET: ${KYC_WEBHOOK_SECRET}
S3_ENDPOINT: http://minio:9000
S3_BUCKET: mint-kyc-docs
S3_ACCESS_KEY: minioadmin
S3_SECRET_KEY: minioadmin
OTEL_SERVICE_NAME: kyc-service
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4318
OTEL_TRACES_EXPORTER: otlp
depends_on:
postgres:
condition: service_healthy
kafka:
condition: service_healthy
kafka-init:
condition: service_completed_successfully
kyc-migrate:
condition: service_completed_successfully
redis:
condition: service_healthy
minio-init:
condition: service_completed_successfully
restart: unless-stopped
analytics:
build:
context: .
dockerfile: apps/analytics/Dockerfile
target: production
container_name: mint-analytics
networks: [mint]
environment:
NODE_ENV: production
DATABASE_URL: postgresql://mint_analytics_user:mint_analytics_pass@postgres:5432/mint_analytics
REDIS_URL: redis://redis:6379
KAFKA_BROKERS: kafka:9092
AUTH_JWKS_URL: http://auth:4001/.well-known/jwks.json
JWT_ISSUER: ${JWT_ISSUER:-mint-auth}
JWT_AUDIENCE: ${JWT_AUDIENCE:-mint-services}
OTEL_SERVICE_NAME: analytics-service
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4318
OTEL_TRACES_EXPORTER: otlp
depends_on:
postgres:
condition: service_healthy
kafka:
condition: service_healthy
kafka-init:
condition: service_completed_successfully
analytics-migrate:
condition: service_completed_successfully
redis:
condition: service_healthy
restart: unless-stopped
notifications:
build:
context: .
dockerfile: apps/notifications/Dockerfile
target: production
container_name: mint-notifications
networks: [mint]
environment:
NODE_ENV: production
DATABASE_URL: postgresql://mint_notifications_user:mint_notifications_pass@postgres:5432/mint_notifications
REDIS_URL: redis://redis:6379
KAFKA_BROKERS: kafka:9092
AUTH_JWKS_URL: http://auth:4001/.well-known/jwks.json
JWT_ISSUER: ${JWT_ISSUER:-mint-auth}
JWT_AUDIENCE: ${JWT_AUDIENCE:-mint-services}
SMTP_HOST: mailhog
SMTP_PORT: '1025'
SMTP_FROM: Mint <noreply@mint.dev>
OTEL_SERVICE_NAME: notifications-service
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4318
OTEL_TRACES_EXPORTER: otlp
depends_on:
postgres:
condition: service_healthy
kafka:
condition: service_healthy
kafka-init:
condition: service_completed_successfully
notifications-migrate:
condition: service_completed_successfully
redis:
condition: service_healthy
restart: unless-stopped
social:
build:
context: .
dockerfile: apps/social/Dockerfile
target: production
container_name: mint-social
networks: [mint]
environment:
NODE_ENV: production
DATABASE_URL: postgresql://mint_social_user:mint_social_pass@postgres:5432/mint_social
REDIS_URL: redis://redis:6379
KAFKA_BROKERS: kafka:9092
AUTH_JWKS_URL: http://auth:4001/.well-known/jwks.json
JWT_ISSUER: ${JWT_ISSUER:-mint-auth}
JWT_AUDIENCE: ${JWT_AUDIENCE:-mint-services}
OTEL_SERVICE_NAME: social-service
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4318
OTEL_TRACES_EXPORTER: otlp
depends_on:
postgres:
condition: service_healthy
kafka:
condition: service_healthy
kafka-init:
condition: service_completed_successfully
social-migrate:
condition: service_completed_successfully
redis:
condition: service_healthy
restart: unless-stopped
webhook:
build:
context: .
dockerfile: apps/webhook/Dockerfile
target: production
container_name: mint-webhook
networks: [mint]
environment:
NODE_ENV: production
DATABASE_URL: postgresql://mint_webhook_user:mint_webhook_pass@postgres:5432/mint_webhook
REDIS_URL: redis://redis:6379
KAFKA_BROKERS: kafka:9092
AUTH_JWKS_URL: http://auth:4001/.well-known/jwks.json
JWT_ISSUER: ${JWT_ISSUER:-mint-auth}
JWT_AUDIENCE: ${JWT_AUDIENCE:-mint-services}
OTEL_SERVICE_NAME: webhook-service
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4318
OTEL_TRACES_EXPORTER: otlp
depends_on:
postgres:
condition: service_healthy
kafka:
condition: service_healthy
kafka-init:
condition: service_completed_successfully
webhook-migrate:
condition: service_completed_successfully
redis:
condition: service_healthy
restart: unless-stopped
admin:
build:
context: .
dockerfile: apps/admin/Dockerfile
target: production
container_name: mint-admin
networks: [mint]
environment:
NODE_ENV: production
REDIS_URL: redis://redis:6379
KAFKA_BROKERS: kafka:9092
AUTH_JWKS_URL: http://auth:4001/.well-known/jwks.json
JWT_ISSUER: ${JWT_ISSUER:-mint-auth}
JWT_AUDIENCE: ${JWT_AUDIENCE:-mint-services}
WALLET_GRPC_URL: wallet:50051
KYC_GRPC_URL: kyc:50053
ADMIN_USER_IDS: ${ADMIN_USER_IDS}
OTEL_SERVICE_NAME: admin-service
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4318
OTEL_TRACES_EXPORTER: otlp
depends_on:
kafka:
condition: service_healthy
redis:
condition: service_healthy
wallet:
condition: service_started
kyc:
condition: service_started
restart: unless-stopped
audit:
build:
context: .
dockerfile: apps/audit/Dockerfile
target: production
container_name: mint-audit
networks: [mint]
environment:
NODE_ENV: production
DATABASE_URL: postgresql://mint_audit_user:mint_audit_pass@postgres:5432/mint_audit
REDIS_URL: redis://redis:6379
KAFKA_BROKERS: kafka:9092
AUTH_JWKS_URL: http://auth:4001/.well-known/jwks.json
JWT_ISSUER: ${JWT_ISSUER:-mint-auth}
JWT_AUDIENCE: ${JWT_AUDIENCE:-mint-services}
OTEL_SERVICE_NAME: audit-service
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4318
OTEL_TRACES_EXPORTER: otlp
depends_on:
postgres:
condition: service_healthy
kafka:
condition: service_healthy
kafka-init:
condition: service_completed_successfully
audit-migrate:
condition: service_completed_successfully
redis:
condition: service_healthy
restart: unless-stopped
volumes:
postgres-data:
redis-data:
minio-data:
networks:
mint:
driver: bridge