-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (38 loc) · 961 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
39 lines (38 loc) · 961 Bytes
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
services:
medgraph:
build:
context: .
dockerfile: Dockerfile
ports:
- "8000:8000"
volumes:
# Persist SQLite database across container restarts
- medgraph-data:/app/data
env_file:
- path: .env
required: false
environment:
- MEDGRAPH_HOST=0.0.0.0
- MEDGRAPH_PORT=8000
- MEDGRAPH_LOG_FORMAT=json
# Auth (optional): set MEDGRAPH_API_KEYS in .env
# Rate limiting: MEDGRAPH_RATE_LIMIT=60 MEDGRAPH_RATE_WINDOW=60
restart: unless-stopped
deploy:
resources:
limits:
cpus: "2.0"
memory: 1G
reservations:
cpus: "0.5"
memory: 256M
healthcheck:
test: ["CMD", "python", "-c",
"import urllib.request; urllib.request.urlopen('http://localhost:8000/health/live')"]
interval: 30s
timeout: 5s
retries: 3
start_period: 15s
volumes:
medgraph-data:
driver: local