-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
555 lines (516 loc) · 16.3 KB
/
Copy pathdocker-compose.yml
File metadata and controls
555 lines (516 loc) · 16.3 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
# Cloud Health Office — Full Local Development Stack
#
# Usage:
# docker compose --profile core up -d # Core adjudication
# docker compose --profile finance up -d # Finance stack
# docker compose --profile fhir up -d # FHIR + interop
# docker compose --profile core --profile finance up -d # Core + Finance
# docker compose --profile core --profile finance --profile fhir up -d # Everything
#
# Note: `docker compose up -d` (no profile) starts only infra (mongo + redis).
# You must specify at least one --profile to start application services.
#
# All services depend on mongo (and some on redis).
# Swagger UI available at http://localhost:{port}/swagger for each service.
#
# Port Map:
# 5001 Claims 5002 Benefit Plan 5003 Member
# 5004 Provider 5005 Authorization 5006 Payment
# 5007 Eligibility 5008 Tenant 5009 Coverage
# 5010 Claims Scrubbing 5011 Enrollment Import 5012 Capitation
# 5013 Appeals 5014 Attachment 5015 Sponsor
# 5016 Reference Data 5017 Pricing API 5018 Premium Billing
# 5019 Provider Contracts 5020 AR Service 5021 Trading Partner
# 5022 RFAI 5023 FHIR 5024 Smart Auth
# 5025 Risk Adjustment 5026 Encounter
# 5027 Encounter Submission 5028 Claims Examiner (AI)
# 5080 Terminology
# 27017 MongoDB 6379 Redis
services:
# ── Infrastructure ────────────────────────────────────────────────────
mongo:
image: mongo:7
ports:
- "27017:27017"
volumes:
- mongo_data:/data/db
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"]
interval: 5s
timeout: 5s
retries: 10
redis:
image: redis:7-alpine
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 10
# ── Core Adjudication (profile: core) ─────────────────────────────────
member-service:
build:
context: .
dockerfile: src/services/member-service/Dockerfile
ports:
- "5003:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- MongoDb__ConnectionString=mongodb://mongo:27017
- MongoDb__DatabaseName=MemberDB
depends_on:
mongo:
condition: service_healthy
profiles: [core, finance, fhir]
coverage-service:
build:
context: .
dockerfile: src/services/coverage-service/Dockerfile
ports:
- "5009:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- MongoDb__ConnectionString=mongodb://mongo:27017
- MongoDb__DatabaseName=CoverageDB
depends_on:
mongo:
condition: service_healthy
profiles: [core, finance, fhir]
eligibility-service:
build:
context: .
dockerfile: src/services/eligibility-service/Dockerfile
ports:
- "5007:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- MongoDb__ConnectionString=mongodb://mongo:27017
- MongoDb__DatabaseName=EligibilityDB
depends_on:
mongo:
condition: service_healthy
profiles: [core, fhir]
claims-service:
build:
context: .
dockerfile: src/services/claims-service/Dockerfile
ports:
- "5001:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- MongoDb__ConnectionString=mongodb://mongo:27017
- MongoDb__DatabaseName=ClaimsDB
- Kafka__BootstrapServers=kafka:9092
- Kafka__ClientId=claims-service
depends_on:
mongo:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8080/health/live || exit 1"]
interval: 10s
timeout: 5s
retries: 10
profiles: [core, finance]
benefit-plan-service:
build:
context: .
dockerfile: src/services/benefit-plan-service/Dockerfile
ports:
- "5002:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- MongoDb__ConnectionString=mongodb://mongo:27017
- MongoDb__DatabaseName=BenefitPlanDB
- Redis__ConnectionString=redis:6379
- Services__ClaimsServiceUrl=http://claims-service:8080
depends_on:
mongo:
condition: service_healthy
redis:
condition: service_healthy
profiles: [core, finance]
authorization-service:
build:
context: .
dockerfile: src/services/authorization-service/Dockerfile
ports:
- "5005:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- MongoDb__ConnectionString=mongodb://mongo:27017
- MongoDb__DatabaseName=AuthorizationDB
depends_on:
mongo:
condition: service_healthy
profiles: [core, fhir]
provider-service:
build:
context: .
dockerfile: src/services/provider-service/Dockerfile
ports:
- "5004:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- MongoDb__ConnectionString=mongodb://mongo:27017
- MongoDb__DatabaseName=ProviderDB
depends_on:
mongo:
condition: service_healthy
profiles: [core, finance]
tenant-service:
build:
context: .
dockerfile: src/services/tenant-service/Dockerfile
ports:
- "5008:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- MongoDb__ConnectionString=mongodb://mongo:27017
- MongoDb__DatabaseName=TenantDB
depends_on:
mongo:
condition: service_healthy
profiles: [core]
reference-data-service:
build:
context: .
dockerfile: src/services/reference-data-service/Dockerfile
ports:
- "5016:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- MongoDb__ConnectionString=mongodb://mongo:27017
- MongoDb__DatabaseName=ReferenceDataDB
depends_on:
mongo:
condition: service_healthy
profiles: [core]
# ── Finance (profile: finance) ────────────────────────────────────────
payment-service:
build:
context: .
dockerfile: src/services/payment-service/Dockerfile
ports:
- "5006:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- MongoDb__ConnectionString=mongodb://mongo:27017
- MongoDb__DatabaseName=PaymentDB
- ClaimsService__BaseUrl=http://claims-service:8080
depends_on:
mongo:
condition: service_healthy
profiles: [finance]
premium-billing-service:
build:
context: .
dockerfile: src/services/premium-billing-service/Dockerfile
ports:
- "5018:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- MongoDb__ConnectionString=mongodb://mongo:27017
- MongoDb__DatabaseName=PremiumBillingDB
depends_on:
mongo:
condition: service_healthy
profiles: [finance]
capitation-service:
build:
context: .
dockerfile: src/services/capitation-service/Dockerfile
ports:
- "5012:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- MongoDb__ConnectionString=mongodb://mongo:27017
- MongoDb__DatabaseName=CloudHealthOffice
- CoverageService__BaseUrl=http://coverage-service:8080
- ProviderService__BaseUrl=http://provider-service:8080
- RiskAdjustmentService__BaseUrl=http://risk-adjustment-service:8080
depends_on:
mongo:
condition: service_healthy
profiles: [finance]
ar-service:
build:
context: .
dockerfile: src/services/ar-service/Dockerfile
ports:
- "5020:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- MongoDb__ConnectionString=mongodb://mongo:27017
- MongoDb__DatabaseName=CloudHealthOffice
depends_on:
mongo:
condition: service_healthy
profiles: [finance]
provider-contracts-service:
build:
context: .
dockerfile: src/services/provider-contracts-service/Dockerfile
ports:
- "5019:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- MongoDb__ConnectionString=mongodb://mongo:27017
- MongoDb__DatabaseName=CloudHealthOffice
depends_on:
mongo:
condition: service_healthy
profiles: [finance]
sponsor-service:
build:
context: .
dockerfile: src/services/sponsor-service/Dockerfile
ports:
- "5015:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- MongoDb__ConnectionString=mongodb://mongo:27017
- MongoDb__DatabaseName=SponsorDB
depends_on:
mongo:
condition: service_healthy
profiles: [finance]
# ── FHIR & Interoperability (profile: fhir) ──────────────────────────
fhir-service:
build:
context: .
dockerfile: src/services/fhir-service/Dockerfile
ports:
- "5023:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- MongoDb__ConnectionString=mongodb://mongo:27017
- MongoDb__DatabaseName=FhirDB
- SmartAuth__Issuer=http://smart-auth-service:8080
- SmartAuth__RequireHttpsMetadata=false
- FhirAdapters__Mode=Demo
- FhirAdapters__DataClassification=synthetic
- FhirAdapters__TenantId=demo-tenant
- Appeals__UseMockAdapter=true
depends_on:
mongo:
condition: service_healthy
profiles: [fhir]
smart-auth-service:
build:
context: .
dockerfile: src/services/smart-auth-service/Dockerfile
ports:
- "5024:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- MongoDb__ConnectionString=mongodb://mongo:27017
- MongoDb__DatabaseName=SmartAuthDB
depends_on:
mongo:
condition: service_healthy
profiles: [fhir]
terminology-service:
build:
context: .
dockerfile: src/services/CHO.TerminologyService/Dockerfile
ports:
- "5080:5080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- TerminologyService__MongoConnectionString=mongodb://mongo:27017
- TerminologyService__MongoDatabaseName=cho_terminology
depends_on:
mongo:
condition: service_healthy
profiles: [fhir]
# ── Supporting Services ───────────────────────────────────────────────
appeals-service:
build:
context: .
dockerfile: src/services/appeals-service/Dockerfile
ports:
- "5013:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- MongoDb__ConnectionString=mongodb://mongo:27017
- MongoDb__DatabaseName=AppealsDB
depends_on:
mongo:
condition: service_healthy
profiles: [core]
attachment-service:
build:
context: .
dockerfile: src/services/attachment-service/Dockerfile
ports:
- "5014:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- MongoDb__ConnectionString=mongodb://mongo:27017
- MongoDb__DatabaseName=AttachmentDB
depends_on:
mongo:
condition: service_healthy
profiles: [core]
member-document-service:
build:
context: .
dockerfile: src/services/member-document-service/Dockerfile
ports:
- "5029:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- MongoDb__ConnectionString=mongodb://mongo:27017
- MongoDb__DatabaseName=MemberDocumentDB
- BlobStorage__ConnectionString=UseDevelopmentStorage=true
depends_on:
mongo:
condition: service_healthy
profiles: [core]
enrollment-import-service:
build:
context: .
dockerfile: src/services/enrollment-import-service/Dockerfile
ports:
- "5011:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- MongoDb__ConnectionString=mongodb://mongo:27017
- MongoDb__DatabaseName=EnrollmentDB
depends_on:
mongo:
condition: service_healthy
profiles: [core]
trading-partner-service:
build:
context: .
dockerfile: src/services/trading-partner-service/Dockerfile
ports:
- "5021:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- MongoDb__ConnectionString=mongodb://mongo:27017
- MongoDb__DatabaseName=TradingPartnerDB
depends_on:
mongo:
condition: service_healthy
profiles: [core]
rfai-service:
build:
context: .
dockerfile: src/services/rfai-service/Dockerfile
ports:
- "5022:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- MongoDb__ConnectionString=mongodb://mongo:27017
- MongoDb__DatabaseName=RfaiDB
depends_on:
mongo:
condition: service_healthy
profiles: [core]
risk-adjustment-service:
build:
context: .
dockerfile: src/services/risk-adjustment-service/Dockerfile
ports:
- "5025:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- MongoDb__ConnectionString=mongodb://mongo:27017
- MongoDb__DatabaseName=RiskAdjustmentDB
depends_on:
mongo:
condition: service_healthy
profiles: [finance, fhir]
encounter-service:
build:
context: .
dockerfile: src/services/encounter-service/Dockerfile
ports:
- "5026:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- MongoDb__ConnectionString=mongodb://mongo:27017
- MongoDb__DatabaseName=EncounterDB
depends_on:
mongo:
condition: service_healthy
profiles: [fhir]
pricing-api:
build:
context: .
dockerfile: src/services/CloudHealthOffice.PricingApi/Dockerfile
ports:
- "5017:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- MongoDb__ConnectionString=mongodb://mongo:27017
- MongoDb__DatabaseName=PricingDB
depends_on:
mongo:
condition: service_healthy
profiles: [core]
encounter-submission-service:
build:
context: .
dockerfile: src/services/encounter-submission-service/Dockerfile
ports:
- "5027:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- MongoDb__ConnectionString=mongodb://mongo:27017
- MongoDb__DatabaseName=EncounterSubmissionDB
- Kafka__BootstrapServers=kafka:9092
- Kafka__AdjudicationCompletedTopic=adjudication-completed
depends_on:
mongo:
condition: service_healthy
profiles: [core]
# AI-powered advisory examiner for pended claims. Subscribes to claims.pended.v1
# via Kafka, calls Anthropic Claude with NCCI bundling context, and writes an
# advisory recommendation to claims-service for human work-queue review.
# ANTHROPIC_API_KEY must be set in the host environment (or Key Vault in prod);
# the service degrades gracefully if it's missing — events still consume but
# the orchestrator writes EscalateToHuman fallbacks.
claims-examiner-service:
build:
context: .
dockerfile: src/services/claims-examiner-service/Dockerfile
ports:
- "5028:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- Kafka__BootstrapServers=kafka:9092
- Kafka__ClaimPendedTopic=claims.pended.v1
- Kafka__ConsumerGroupId=claims-examiner-service
- Services__ClaimsService=http://claims-service:8080
- Anthropic__ApiKey=${ANTHROPIC_API_KEY:-}
- Anthropic__Model=claude-opus-4-6
depends_on:
claims-service:
condition: service_healthy
profiles: [core]
# Member plan-year accumulators. Subscribes to claims.finalized.v1 and applies
# per-member deductible / OOP / per-service updates; idempotent on (tenantId, claimId).
# Manual adjustments audited via AccumulatorEvent + accumulators.adjusted.v1.
accumulator-service:
build:
context: .
dockerfile: src/services/accumulator-service/Dockerfile
ports:
- "5029:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- MongoDb__ConnectionString=mongodb://mongo:27017
- MongoDb__DatabaseName=AccumulatorDB
- Kafka__BootstrapServers=kafka:9092
- Kafka__ClientId=accumulator-service
- Kafka__ClaimFinalized__GroupId=accumulator-service.claims-finalized
depends_on:
mongo:
condition: service_healthy
profiles: [core]
volumes:
mongo_data: