File size: 541 Bytes
1eec5a6 44215ae 1eec5a6 44215ae | 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 | services:
api:
build:
context: ./backend
ports:
- "8000:8000"
environment:
# Keep the telemetry DB on a mounted volume so interactions survive
# container restarts.
DOCUASK_DB: /data/docuask.db
volumes:
- api-data:/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 5s
retries: 3
frontend:
build:
context: ./frontend
ports:
- "5173:80"
depends_on:
- api
volumes:
api-data:
|