-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.prod.yml
More file actions
761 lines (728 loc) · 25.7 KB
/
Copy pathcompose.prod.yml
File metadata and controls
761 lines (728 loc) · 25.7 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
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
x-service: &service-defaults
restart: unless-stopped
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
x-healthcheck: &healthcheck
interval: 15s
timeout: 5s
retries: 5
start_period: 15s
services:
# ── Infrastructure ───────────────────────────────────────────────────
postgres:
<<: *service-defaults
# Intentionally pinned to major version 16 (tracks stable 16.x patches)
image: postgres:16
environment:
POSTGRES_DB: ${POSTGRES_DB:-manifest}
POSTGRES_USER: ${POSTGRES_USER:-manifest}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?POSTGRES_PASSWORD is required}
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-manifest}"]
<<: *healthcheck
networks: [internal]
deploy:
resources:
limits:
cpus: '1.0'
memory: 1G
redis:
<<: *service-defaults
# Intentionally pinned to major version 7 (tracks stable 7.x patches)
image: redis:7
command: redis-server --requirepass ${REDIS_PASSWORD:?REDIS_PASSWORD required}
healthcheck:
test: ["CMD", "redis-cli", "-a", "${REDIS_PASSWORD:?REDIS_PASSWORD required}", "ping"]
<<: *healthcheck
networks: [internal]
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
minio:
<<: *service-defaults
# Pinned: MinIO RELEASE.2025-09-07T16-13-09Z
image: minio/minio:RELEASE.2025-09-07T16-13-09Z
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: ${MINIO_ROOT_USER:-manifest}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:?MINIO_ROOT_PASSWORD is required}
MINIO_API_CORS_ALLOW_ORIGIN: ${MINIO_API_CORS_ALLOW_ORIGIN:-http://localhost:3000}
volumes:
- minio_data:/data
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:9000/minio/health/live || exit 1"]
<<: *healthcheck
networks: [internal]
deploy:
resources:
limits:
cpus: '1.0'
memory: 1G
redpanda:
<<: *service-defaults
# Pinned: Redpanda v24.3.1
image: redpandadata/redpanda:v24.3.1
command:
- redpanda
- start
- --overprovisioned
- --smp=1
- --memory=1G
- --reserve-memory=0M
- --node-id=0
- --check=false
- --kafka-addr=PLAINTEXT://0.0.0.0:9092
- --advertise-kafka-addr=PLAINTEXT://redpanda:9092
- --pandaproxy-addr=0.0.0.0:8082
- --advertise-pandaproxy-addr=redpanda:8082
- --set
- auto_create_topics_enabled=true
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:9644/v1/status/ready || exit 1"]
interval: 5s
timeout: 3s
retries: 5
start_period: 10s
networks: [internal]
deploy:
resources:
limits:
cpus: '1.0'
memory: 1G
typesense:
<<: *service-defaults
image: typesense/typesense:28.0
command:
- --data-dir=/data
- --api-key=${TYPESENSE_API_KEY:?TYPESENSE_API_KEY is required}
- --enable-cors
volumes:
- typesense_data:/data
healthcheck:
test: ["CMD-SHELL", "bash -c ':> /dev/tcp/127.0.0.1/8108' || exit 1"]
<<: *healthcheck
networks: [internal]
deploy:
resources:
limits:
cpus: '1.0'
memory: 1G
traefik:
<<: *service-defaults
image: traefik:v3.3
ports:
- "${HTTPS_PORT:-443}:443"
- "${HTTP_PORT:-80}:80"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- traefik_certs:/letsencrypt
command:
- --api.insecure=false
- --providers.docker=true
- --providers.docker.exposedbydefault=false
- --providers.docker.network=public
- --entrypoints.web.address=:80
- --entrypoints.web.http.redirections.entrypoint.to=websecure
- --entrypoints.web.http.redirections.entrypoint.scheme=https
- --entrypoints.websecure.address=:443
- --certificatesresolvers.letsencrypt.acme.tlschallenge=true
- --certificatesresolvers.letsencrypt.acme.email=${ACME_EMAIL:?ACME_EMAIL is required for TLS}
- --certificatesresolvers.letsencrypt.acme.storage=/letsencrypt/acme.json
healthcheck:
test: ["CMD", "traefik", "healthcheck"]
<<: *healthcheck
networks: [public]
deploy:
resources:
limits:
cpus: '0.25'
memory: 256M
# ── Observability ────────────────────────────────────────────────────────
prometheus:
<<: *service-defaults
image: prom/prometheus:v2.50.0
ports:
- "${PROMETHEUS_PORT:-9090}:9090"
volumes:
- ./infra/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
- ./infra/prometheus/alerting_rules.yml:/etc/prometheus/alerting_rules.yml:ro
depends_on:
alertmanager:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "wget -q -O - http://localhost:9090/-/healthy > /dev/null || exit 1"]
<<: *healthcheck
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
alertmanager:
<<: *service-defaults
image: prom/alertmanager:v0.27.0
ports:
- "${ALERTMANAGER_PORT:-9093}:9093"
volumes:
- ./infra/alertmanager/alertmanager.yml:/etc/alertmanager/alertmanager.yml:ro
healthcheck:
test: ["CMD-SHELL", "wget -q -O - http://localhost:9093/-/healthy > /dev/null || exit 1"]
<<: *healthcheck
deploy:
resources:
limits:
cpus: '0.25'
memory: 256M
bugsink:
<<: *service-defaults
# Pinned: BugSink 0.6.2
image: bugsink/bugsink:0.6.2
ports:
- "${BUGSINK_PORT:-8800}:8000"
environment:
DATABASE_URL: "postgresql://${POSTGRES_USER:-manifest}:${POSTGRES_PASSWORD:?}@postgres:5432/bugsink"
SECRET_KEY: "${BUGSINK_SECRET_KEY:?BUGSINK_SECRET_KEY is required}"
BASE_URL: "${BUGSINK_BASE_URL:-http://localhost:8800}"
PORT: "8000"
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:8000/ || exit 1"]
<<: *healthcheck
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
# ── Backend Services ─────────────────────────────────────────────────
db-migrator:
<<: *service-defaults
image: ghcr.io/full-chaos/script-manifest/db-migrator:${IMAGE_TAG:?IMAGE_TAG is required}
environment:
NODE_ENV: production
DATABASE_URL: "postgresql://${POSTGRES_USER:-manifest}:${POSTGRES_PASSWORD:?}@postgres:5432/${POSTGRES_DB:-manifest}"
restart: "no"
depends_on:
postgres:
condition: service_healthy
networks: [internal]
notification-service:
<<: *service-defaults
image: ghcr.io/full-chaos/script-manifest/notification-service:${IMAGE_TAG:?IMAGE_TAG is required}
environment:
PORT: "4010"
NODE_ENV: production
KAFKA_BROKERS: "redpanda:9092"
depends_on:
redpanda:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:4010/health || exit 1"]
<<: *healthcheck
networks: [internal]
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
identity-service:
<<: *service-defaults
image: ghcr.io/full-chaos/script-manifest/identity-service:${IMAGE_TAG:?IMAGE_TAG is required}
environment:
PORT: "4005"
NODE_ENV: production
DATABASE_URL: "postgresql://${POSTGRES_USER:-manifest}:${POSTGRES_PASSWORD:?}@postgres:5432/${POSTGRES_DB:-manifest}"
GOOGLE_CLIENT_ID: ${GOOGLE_CLIENT_ID:-}
GOOGLE_CLIENT_SECRET: ${GOOGLE_CLIENT_SECRET:-}
GOOGLE_REDIRECT_URI: ${GOOGLE_REDIRECT_URI:-}
IDENTITY_SERVICE_PUBLIC_URL: ${IDENTITY_SERVICE_PUBLIC_URL:-http://identity-service:4005}
EMAIL_API_KEY: ${EMAIL_API_KEY:?EMAIL_API_KEY is required for transactional email}
EMAIL_FROM: ${EMAIL_FROM:-"Script Manifest <noreply@scriptmanifest.com>"}
FRONTEND_URL: ${FRONTEND_URL:?FRONTEND_URL is required for email links}
depends_on:
db-migrator:
condition: service_completed_successfully
postgres:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:4005/health || exit 1"]
<<: *healthcheck
networks: [internal]
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
profile-project-service:
<<: *service-defaults
image: ghcr.io/full-chaos/script-manifest/profile-project-service:${IMAGE_TAG:?IMAGE_TAG is required}
environment:
PORT: "4001"
NODE_ENV: production
DATABASE_URL: "postgresql://${POSTGRES_USER:-manifest}:${POSTGRES_PASSWORD:?}@postgres:5432/${POSTGRES_DB:-manifest}"
NOTIFICATION_SERVICE_URL: "http://notification-service:4010"
KAFKA_BROKERS: "redpanda:9092"
TYPESENSE_API_KEY: ${TYPESENSE_API_KEY:?TYPESENSE_API_KEY is required}
TYPESENSE_HOST: "typesense"
TYPESENSE_PORT: "8108"
TYPESENSE_PROTOCOL: "http"
depends_on:
db-migrator:
condition: service_completed_successfully
postgres:
condition: service_healthy
notification-service:
condition: service_healthy
typesense:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:4001/health || exit 1"]
<<: *healthcheck
networks: [internal]
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
competition-directory-service:
<<: *service-defaults
image: ghcr.io/full-chaos/script-manifest/competition-directory-service:${IMAGE_TAG:?IMAGE_TAG is required}
environment:
PORT: "4002"
NODE_ENV: production
DATABASE_URL: "postgresql://${POSTGRES_USER:-manifest}:${POSTGRES_PASSWORD:?}@postgres:5432/${POSTGRES_DB:-manifest}"
NOTIFICATION_SERVICE_URL: "http://notification-service:4010"
KAFKA_BROKERS: "redpanda:9092"
TYPESENSE_API_KEY: ${TYPESENSE_API_KEY:?TYPESENSE_API_KEY is required}
TYPESENSE_HOST: "typesense"
TYPESENSE_PORT: "8108"
TYPESENSE_PROTOCOL: "http"
TYPESENSE_ENABLED: "true"
depends_on:
db-migrator:
condition: service_completed_successfully
postgres:
condition: service_healthy
notification-service:
condition: service_healthy
typesense:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:4002/health || exit 1"]
<<: *healthcheck
networks: [internal]
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
script-storage-service:
<<: *service-defaults
image: ghcr.io/full-chaos/script-manifest/script-storage-service:${IMAGE_TAG:?IMAGE_TAG is required}
environment:
PORT: "4011"
NODE_ENV: production
DATABASE_URL: "postgresql://${POSTGRES_USER:-manifest}:${POSTGRES_PASSWORD:?}@postgres:5432/${POSTGRES_DB:-manifest}"
STORAGE_BUCKET: "scripts"
# Browser-reachable URL for upload forms - MUST be externally accessible
STORAGE_UPLOAD_BASE_URL: ${STORAGE_UPLOAD_BASE_URL:-http://localhost:9000}
STORAGE_PUBLIC_BASE_URL: ${STORAGE_PUBLIC_BASE_URL:-http://localhost:9000}
# Internal network URL for S3 client operations
STORAGE_S3_ENDPOINT: ${STORAGE_S3_ENDPOINT:-http://minio:9000}
STORAGE_S3_REGION: ${STORAGE_S3_REGION:-us-east-1}
STORAGE_S3_ACCESS_KEY: ${MINIO_ROOT_USER:-manifest}
STORAGE_S3_SECRET_KEY: ${MINIO_ROOT_PASSWORD:?MINIO_ROOT_PASSWORD is required}
STORAGE_S3_FORCE_PATH_STYLE: ${STORAGE_S3_FORCE_PATH_STYLE:-true}
depends_on:
db-migrator:
condition: service_completed_successfully
postgres:
condition: service_healthy
minio:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:4011/health || exit 1"]
<<: *healthcheck
networks: [internal]
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
submission-tracking-service:
<<: *service-defaults
image: ghcr.io/full-chaos/script-manifest/submission-tracking-service:${IMAGE_TAG:?IMAGE_TAG is required}
environment:
PORT: "4004"
NODE_ENV: production
DATABASE_URL: "postgresql://${POSTGRES_USER:-manifest}:${POSTGRES_PASSWORD:?}@postgres:5432/${POSTGRES_DB:-manifest}"
depends_on:
db-migrator:
condition: service_completed_successfully
postgres:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:4004/health || exit 1"]
<<: *healthcheck
networks: [internal]
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
feedback-exchange-service:
<<: *service-defaults
image: ghcr.io/full-chaos/script-manifest/feedback-exchange-service:${IMAGE_TAG:?IMAGE_TAG is required}
environment:
PORT: "4006"
NODE_ENV: production
DATABASE_URL: "postgresql://${POSTGRES_USER:-manifest}:${POSTGRES_PASSWORD:?}@postgres:5432/${POSTGRES_DB:-manifest}"
NOTIFICATION_SERVICE_URL: "http://notification-service:4010"
KAFKA_BROKERS: "redpanda:9092"
depends_on:
db-migrator:
condition: service_completed_successfully
postgres:
condition: service_healthy
notification-service:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:4006/health || exit 1"]
<<: *healthcheck
networks: [internal]
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
ranking-service:
<<: *service-defaults
image: ghcr.io/full-chaos/script-manifest/ranking-service:${IMAGE_TAG:?IMAGE_TAG is required}
environment:
PORT: "4007"
NODE_ENV: production
DATABASE_URL: "postgresql://${POSTGRES_USER:-manifest}:${POSTGRES_PASSWORD:?}@postgres:5432/${POSTGRES_DB:-manifest}"
NOTIFICATION_SERVICE_URL: "http://notification-service:4010"
KAFKA_BROKERS: "redpanda:9092"
SUBMISSION_TRACKING_SERVICE_URL: "http://submission-tracking-service:4004"
COMPETITION_DIRECTORY_SERVICE_URL: "http://competition-directory-service:4002"
PROFILE_SERVICE_URL: "http://profile-project-service:4001"
depends_on:
db-migrator:
condition: service_completed_successfully
postgres:
condition: service_healthy
notification-service:
condition: service_healthy
submission-tracking-service:
condition: service_healthy
competition-directory-service:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:4007/health || exit 1"]
<<: *healthcheck
networks: [internal]
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
programs-service:
<<: *service-defaults
image: ghcr.io/full-chaos/script-manifest/programs-service:${IMAGE_TAG:?IMAGE_TAG is required}
environment:
PORT: "4012"
NODE_ENV: production
DATABASE_URL: "postgresql://${POSTGRES_USER:-manifest}:${POSTGRES_PASSWORD:?}@postgres:5432/${POSTGRES_DB:-manifest}"
NOTIFICATION_SERVICE_URL: "http://notification-service:4010"
KAFKA_BROKERS: "redpanda:9092"
depends_on:
db-migrator:
condition: service_completed_successfully
postgres:
condition: service_healthy
notification-service:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:4012/health || exit 1"]
<<: *healthcheck
networks: [internal]
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
partner-dashboard-service:
<<: *service-defaults
image: ghcr.io/full-chaos/script-manifest/partner-dashboard-service:${IMAGE_TAG:?IMAGE_TAG is required}
environment:
PORT: "4013"
NODE_ENV: production
DATABASE_URL: "postgresql://${POSTGRES_USER:-manifest}:${POSTGRES_PASSWORD:?}@postgres:5432/${POSTGRES_DB:-manifest}"
RANKING_SERVICE_URL: "http://ranking-service:4007"
NOTIFICATION_SERVICE_URL: "http://notification-service:4010"
KAFKA_BROKERS: "redpanda:9092"
depends_on:
db-migrator:
condition: service_completed_successfully
postgres:
condition: service_healthy
ranking-service:
condition: service_healthy
notification-service:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:4013/health || exit 1"]
<<: *healthcheck
networks: [internal]
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
metrics-service:
<<: *service-defaults
image: ghcr.io/full-chaos/script-manifest/metrics-service:${IMAGE_TAG:?IMAGE_TAG is required}
environment:
PORT: "4014"
NODE_ENV: production
DATABASE_URL: "postgresql://${POSTGRES_USER:-manifest}:${POSTGRES_PASSWORD:?}@postgres:5432/${POSTGRES_DB:-manifest}"
depends_on:
db-migrator:
condition: service_completed_successfully
postgres:
condition: service_healthy
healthcheck:
# metrics-service exposes /healthz instead of the project-standard
# /health/live; tracked as out-of-scope cleanup in CHAOS-1866.
test: ["CMD-SHELL", "curl -sf http://localhost:4014/healthz || exit 1"]
<<: *healthcheck
networks: [internal]
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
api-gateway:
<<: *service-defaults
image: ghcr.io/full-chaos/script-manifest/api-gateway:${IMAGE_TAG:?IMAGE_TAG is required}
# For direct debugging without Traefik, re-enable:
# ports:
# - "${API_PORT:-4000}:4000"
labels:
traefik.enable: "true"
traefik.http.routers.api.rule: "Host(`${API_DOMAIN:?API_DOMAIN required}`)"
traefik.http.routers.api.entrypoints: "websecure"
traefik.http.routers.api.tls.certresolver: "letsencrypt"
traefik.http.services.api.loadbalancer.server.port: "4000"
environment:
PORT: "4000"
NODE_ENV: production
IDENTITY_SERVICE_URL: "http://identity-service:4005"
PROFILE_SERVICE_URL: "http://profile-project-service:4001"
COMPETITION_DIRECTORY_SERVICE_URL: "http://competition-directory-service:4002"
SUBMISSION_TRACKING_SERVICE_URL: "http://submission-tracking-service:4004"
SCRIPT_STORAGE_SERVICE_URL: "http://script-storage-service:4011"
FEEDBACK_EXCHANGE_SERVICE_URL: "http://feedback-exchange-service:4006"
RANKING_SERVICE_URL: "http://ranking-service:4007"
PROGRAMS_SERVICE_URL: "http://programs-service:4012"
PARTNER_DASHBOARD_SERVICE_URL: "http://partner-dashboard-service:4013"
COVERAGE_MARKETPLACE_SERVICE_URL: "http://coverage-marketplace-service:4008"
INDUSTRY_PORTAL_SERVICE_URL: "http://industry-portal-service:4009"
METRICS_SERVICE_URL: "http://metrics-service:4014"
COVERAGE_ADMIN_ALLOWLIST: ${COVERAGE_ADMIN_ALLOWLIST:-}
INDUSTRY_ADMIN_ALLOWLIST: ${INDUSTRY_ADMIN_ALLOWLIST:-}
NOTIFICATION_SERVICE_URL: "http://notification-service:4010"
CORS_ALLOWED_ORIGINS: ${CORS_ALLOWED_ORIGINS:-}
depends_on:
traefik:
condition: service_healthy
identity-service:
condition: service_healthy
profile-project-service:
condition: service_healthy
competition-directory-service:
condition: service_healthy
submission-tracking-service:
condition: service_healthy
feedback-exchange-service:
condition: service_healthy
ranking-service:
condition: service_healthy
programs-service:
condition: service_healthy
partner-dashboard-service:
condition: service_healthy
coverage-marketplace-service:
condition: service_healthy
industry-portal-service:
condition: service_healthy
script-storage-service:
condition: service_healthy
notification-service:
condition: service_healthy
metrics-service:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:4000/health/live || exit 1"]
<<: *healthcheck
networks: [public, internal]
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
coverage-marketplace-service:
<<: *service-defaults
image: ghcr.io/full-chaos/script-manifest/coverage-marketplace-service:${IMAGE_TAG:?IMAGE_TAG is required}
environment:
PORT: "4008"
NODE_ENV: production
DATABASE_URL: "postgresql://${POSTGRES_USER:-manifest}:${POSTGRES_PASSWORD:?}@postgres:5432/${POSTGRES_DB:-manifest}"
NOTIFICATION_SERVICE_URL: "http://notification-service:4010"
KAFKA_BROKERS: "redpanda:9092"
STRIPE_SECRET_KEY: ${STRIPE_SECRET_KEY:?STRIPE_SECRET_KEY is required}
STRIPE_WEBHOOK_SECRET: ${STRIPE_WEBHOOK_SECRET:?STRIPE_WEBHOOK_SECRET is required}
PLATFORM_COMMISSION_RATE: ${PLATFORM_COMMISSION_RATE:-0.15}
MINIO_ENDPOINT: "http://minio:9000"
STORAGE_S3_ENDPOINT: "http://minio:9000"
STORAGE_S3_ACCESS_KEY: ${MINIO_ROOT_USER:-manifest}
STORAGE_S3_SECRET_KEY: ${MINIO_ROOT_PASSWORD:?}
STORAGE_BUCKET: "coverage-reports"
FRONTEND_URL: ${FRONTEND_URL:-http://localhost:3000}
depends_on:
db-migrator:
condition: service_completed_successfully
postgres:
condition: service_healthy
notification-service:
condition: service_healthy
minio:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:4008/health || exit 1"]
<<: *healthcheck
networks: [internal]
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
industry-portal-service:
<<: *service-defaults
image: ghcr.io/full-chaos/script-manifest/industry-portal-service:${IMAGE_TAG:?IMAGE_TAG is required}
environment:
PORT: "4009"
NODE_ENV: production
DATABASE_URL: "postgresql://${POSTGRES_USER:-manifest}:${POSTGRES_PASSWORD:?}@postgres:5432/${POSTGRES_DB:-manifest}"
SCRIPT_STORAGE_SERVICE_URL: "http://script-storage-service:4011"
NOTIFICATION_SERVICE_URL: "http://notification-service:4010"
KAFKA_BROKERS: "redpanda:9092"
TYPESENSE_API_KEY: ${TYPESENSE_API_KEY:?TYPESENSE_API_KEY is required}
TYPESENSE_HOST: "typesense"
TYPESENSE_PORT: "8108"
TYPESENSE_PROTOCOL: "http"
TYPESENSE_ENABLED: "true"
depends_on:
db-migrator:
condition: service_completed_successfully
postgres:
condition: service_healthy
script-storage-service:
condition: service_healthy
notification-service:
condition: service_healthy
typesense:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:4009/health || exit 1"]
<<: *healthcheck
networks: [internal]
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
search-sync-worker:
<<: *service-defaults
image: ghcr.io/full-chaos/script-manifest/search-sync-worker:${IMAGE_TAG:?IMAGE_TAG is required}
environment:
PORT: "4020"
NODE_ENV: production
DATABASE_URL: "postgresql://${POSTGRES_USER:-manifest}:${POSTGRES_PASSWORD:?}@postgres:5432/${POSTGRES_DB:-manifest}"
KAFKA_BROKERS: "redpanda:9092"
TYPESENSE_API_KEY: ${TYPESENSE_API_KEY:?TYPESENSE_API_KEY is required}
TYPESENSE_HOST: "typesense"
TYPESENSE_PORT: "8108"
TYPESENSE_PROTOCOL: "http"
depends_on:
db-migrator:
condition: service_completed_successfully
postgres:
condition: service_healthy
typesense:
condition: service_healthy
redpanda:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:4020/health || exit 1"]
<<: *healthcheck
networks: [internal]
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
# ── Frontend ─────────────────────────────────────────────────────────
writer-web:
<<: *service-defaults
image: ghcr.io/full-chaos/script-manifest/writer-web:${IMAGE_TAG:?IMAGE_TAG is required}
# For direct debugging without Traefik, re-enable:
# ports:
# - "${WEB_PORT:-3000}:3000"
labels:
traefik.enable: "true"
traefik.http.routers.web.rule: "Host(`${WEB_DOMAIN:?WEB_DOMAIN required}`)"
traefik.http.routers.web.entrypoints: "websecure"
traefik.http.routers.web.tls.certresolver: "letsencrypt"
traefik.http.services.web.loadbalancer.server.port: "3000"
environment:
NODE_ENV: production
HOSTNAME: "0.0.0.0"
PORT: "3000"
SCRIPT_STORAGE_SERVICE_URL: "http://script-storage-service:4011"
API_GATEWAY_URL: "http://api-gateway:4000"
SCRIPT_UPLOAD_INTERNAL_BASE_URL: ${SCRIPT_UPLOAD_INTERNAL_BASE_URL:-http://minio:9000}
depends_on:
traefik:
condition: service_healthy
api-gateway:
condition: service_healthy
script-storage-service:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "wget -q -O /dev/null http://localhost:3000/health/ready || exit 1"]
<<: *healthcheck
networks: [public, internal]
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
volumes:
postgres_data:
minio_data:
traefik_certs:
typesense_data:
networks:
public:
driver: bridge
internal:
driver: bridge