-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
134 lines (129 loc) · 4.97 KB
/
docker-compose.yml
File metadata and controls
134 lines (129 loc) · 4.97 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
services:
# ---------------------------------------------------------------------------
# FastAPI Orchestrator — fan-out/fan-in, SSE streaming, review dashboard
# ---------------------------------------------------------------------------
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "8000:8000"
environment:
# All 4 agent containers run separately.
# Backend calls them over HTTP — URLs are set to Docker service names.
- HOSTED_AGENT_CLINICAL_URL=http://agent-clinical:8088
- HOSTED_AGENT_COVERAGE_URL=http://agent-coverage:8088
- HOSTED_AGENT_COMPLIANCE_URL=http://agent-compliance:8088
- HOSTED_AGENT_SYNTHESIS_URL=http://agent-synthesis:8088
# App settings
- FRONTEND_ORIGIN=http://localhost:3000
env_file:
- ./backend/.env
depends_on:
agent-clinical:
condition: service_healthy
agent-coverage:
condition: service_healthy
agent-compliance:
condition: service_healthy
agent-synthesis:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 15s
# ---------------------------------------------------------------------------
# Clinical Reviewer Agent — ICD-10, PubMed, Clinical Trials MCP
# ---------------------------------------------------------------------------
agent-clinical:
build:
context: ./agents/clinical
dockerfile: Dockerfile
ports:
- "8001:8088"
environment:
- AZURE_AI_PROJECT_ENDPOINT=${AZURE_AI_PROJECT_ENDPOINT}
- AZURE_OPENAI_DEPLOYMENT_NAME=${AZURE_OPENAI_DEPLOYMENT_NAME:-gpt-4o}
- MCP_ICD10_CODES=${MCP_ICD10_CODES:-https://mcp.deepsense.ai/icd10_codes/mcp}
- MCP_PUBMED=${MCP_PUBMED:-https://pubmed.mcp.claude.com/mcp}
- MCP_CLINICAL_TRIALS=${MCP_CLINICAL_TRIALS:-https://mcp.deepsense.ai/clinical_trials/mcp}
- APPLICATION_INSIGHTS_CONNECTION_STRING=${APPLICATION_INSIGHTS_CONNECTION_STRING:-}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8088/liveness"]
interval: 30s
timeout: 5s
retries: 3
start_period: 20s
# ---------------------------------------------------------------------------
# Coverage Assessment Agent — NPI Registry, CMS Coverage MCP
# ---------------------------------------------------------------------------
agent-coverage:
build:
context: ./agents/coverage
dockerfile: Dockerfile
ports:
- "8002:8088"
environment:
- AZURE_AI_PROJECT_ENDPOINT=${AZURE_AI_PROJECT_ENDPOINT}
- AZURE_OPENAI_DEPLOYMENT_NAME=${AZURE_OPENAI_DEPLOYMENT_NAME:-gpt-4o}
- MCP_NPI_REGISTRY=${MCP_NPI_REGISTRY:-https://mcp.deepsense.ai/npi_registry/mcp}
- MCP_CMS_COVERAGE=${MCP_CMS_COVERAGE:-https://mcp.deepsense.ai/cms_coverage/mcp}
- APPLICATION_INSIGHTS_CONNECTION_STRING=${APPLICATION_INSIGHTS_CONNECTION_STRING:-}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8088/liveness"]
interval: 30s
timeout: 5s
retries: 3
start_period: 20s
# ---------------------------------------------------------------------------
# Compliance Validation Agent — pure reasoning, no MCP tools
# ---------------------------------------------------------------------------
agent-compliance:
build:
context: ./agents/compliance
dockerfile: Dockerfile
ports:
- "8003:8088"
environment:
- AZURE_AI_PROJECT_ENDPOINT=${AZURE_AI_PROJECT_ENDPOINT}
- AZURE_OPENAI_DEPLOYMENT_NAME=${AZURE_OPENAI_DEPLOYMENT_NAME:-gpt-4o-mini}
- APPLICATION_INSIGHTS_CONNECTION_STRING=${APPLICATION_INSIGHTS_CONNECTION_STRING:-}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8088/liveness"]
interval: 30s
timeout: 5s
retries: 3
start_period: 20s
# ---------------------------------------------------------------------------
# Synthesis Decision Agent — pure reasoning, no MCP tools
# ---------------------------------------------------------------------------
agent-synthesis:
build:
context: ./agents/synthesis
dockerfile: Dockerfile
ports:
- "8004:8088"
environment:
- AZURE_AI_PROJECT_ENDPOINT=${AZURE_AI_PROJECT_ENDPOINT}
- AZURE_OPENAI_DEPLOYMENT_NAME=${AZURE_OPENAI_DEPLOYMENT_NAME:-gpt-4o}
- APPLICATION_INSIGHTS_CONNECTION_STRING=${APPLICATION_INSIGHTS_CONNECTION_STRING:-}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8088/liveness"]
interval: 30s
timeout: 5s
retries: 3
start_period: 20s
# ---------------------------------------------------------------------------
# Next.js Frontend
# ---------------------------------------------------------------------------
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3000:80"
depends_on:
backend:
condition: service_healthy