File size: 686 Bytes
b861e6c 7bf7c7d b861e6c 7bf7c7d b861e6c 7bf7c7d b861e6c 7bf7c7d b861e6c 7bf7c7d | 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 | services:
docneedle:
build:
context: .
dockerfile: Dockerfile
container_name: docneedle
restart: unless-stopped
ports:
- "7860:7860"
environment:
- HOST=0.0.0.0
- PORT=7860
- MODEL_STORAGE_DIR=/app/models
- CONFIG_TOML=/app/config.toml
volumes:
# Model weights stored on host to persist across container rebuilds
- ./models:/app/models
# Pipeline configuration mounted read-only for live tuning
- ./config.toml:/app/config.toml:ro
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:7860/healthz"]
interval: 30s
timeout: 5s
retries: 3
start_period: 45s
|