-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (60 loc) · 2.06 KB
/
Copy pathdocker-compose.yml
File metadata and controls
66 lines (60 loc) · 2.06 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
# ── OmicPath Docker Compose ───────────────────────────────────────────────────
# Services:
# api - OmicPath FastAPI inference server (LLM via Groq API)
version: "3.9"
services:
api:
build:
context: .
dockerfile: Dockerfile
target: runtime
image: omicpath:latest
container_name: omicpath-api
ports:
- "8000:8000"
volumes:
- ./checkpoints:/app/checkpoints:ro # model weights (read-only)
- ./config:/app/config:ro # config (read-only)
- ./data/rna/processed:/app/data/rna/processed:ro
- ./logs:/app/logs # audit logs (writable)
- ./results:/app/results # evaluation results
environment:
- CONFIG_PATH=config/config.yaml
- CKPT_PATH=checkpoints/best_fold2.pt
- CALIB_PATH=checkpoints/calibration_ensemble.json
- LLM_BACKEND=openrouter
- LLM_MODEL=anthropic/claude-sonnet-4-5
- MAX_PATCHES=2048
- OPENROUTER_API_KEY=${OPENROUTER_API_KEY:?OPENROUTER_API_KEY is required}
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c",
"import requests; requests.get('http://localhost:8000/health').raise_for_status()"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
# Optional: Prometheus monitoring
prometheus:
image: prom/prometheus:latest
container_name: omicpath-prometheus
ports:
- "9090:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
restart: unless-stopped
profiles: ["monitoring"] # only starts with: docker compose --profile monitoring up
# Optional: Grafana dashboard
grafana:
image: grafana/grafana:latest
container_name: omicpath-grafana
ports:
- "3000:3000"
environment:
- GF_SECURITY_ADMIN_PASSWORD=omicpath
volumes:
- grafana_data:/var/lib/grafana
restart: unless-stopped
profiles: ["monitoring"]
volumes:
grafana_data: