-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (31 loc) · 1 KB
/
Copy pathdocker-compose.yml
File metadata and controls
32 lines (31 loc) · 1 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
version: '3.9'
services:
monjoy-histoai:
build: .
container_name: monjoy-histoai
ports:
- "5000:5000"
environment:
- PORT=5000
- HOST=0.0.0.0
- NODE_ENV=production
# Optional: set a secret key for the auth gate
- AUTH_SECRET=${AUTH_SECRET:-}
# Optional: GitHub repo for fork-check
- GITHUB_REPO=${GITHUB_REPO:-}
volumes:
# Persist annotations, thumbnails, and the slide registry
- ./annotations:/app/annotations
- ./patches:/app/patches
- ./static/thumbnails:/app/static/thumbnails
- ./slide_registry.json:/app/slide_registry.json
- ./remote_slide_registry.json:/app/remote_slide_registry.json
- ./config.json:/app/config.json
# Mount your local slide directories read-only (add as many as needed)
# - /data/slides:/data/slides:ro
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/api/stats"]
interval: 30s
timeout: 10s
retries: 3