-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
71 lines (69 loc) · 1.67 KB
/
docker-compose.yml
File metadata and controls
71 lines (69 loc) · 1.67 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
services:
# MCP Server (SSE mode for AI Agent integration)
medical-calc-mcp:
build:
context: .
dockerfile: Dockerfile
container_name: medical-calc-mcp
ports:
- "8000:8000"
environment:
- MCP_MODE=sse
- MCP_HOST=0.0.0.0
- MCP_PORT=8000
- LOG_LEVEL=INFO
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:8000/sse", "-o", "/dev/null", "-m", "5"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
deploy:
resources:
limits:
cpus: '1.0'
memory: 512M
reservations:
cpus: '0.25'
memory: 128M
# REST API Server (FastAPI for direct HTTP access)
medical-calc-api:
build:
context: .
dockerfile: Dockerfile
container_name: medical-calc-api
ports:
- "8080:8080"
environment:
- MCP_MODE=api
- MCP_HOST=0.0.0.0
- API_PORT=8080
- LOG_LEVEL=INFO
command: ["python", "src/main.py", "--mode", "api", "--host", "0.0.0.0", "--port", "8080"]
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
deploy:
resources:
limits:
cpus: '1.0'
memory: 512M
reservations:
cpus: '0.25'
memory: 128M
# Optional: Nginx reverse proxy for production
# nginx:
# image: nginx:alpine
# ports:
# - "80:80"
# - "443:443"
# volumes:
# - ./nginx.conf:/etc/nginx/nginx.conf:ro
# depends_on:
# - medical-calc-mcp
# - medical-calc-api