Spaces:
Running
Running
| version: '3.8' | |
| services: | |
| nova-ai: | |
| build: . | |
| container_name: nova-ai-server | |
| ports: | |
| - "8000:8000" | |
| volumes: | |
| # Persist data across restarts | |
| - ./data:/app/data | |
| - ./checkpoints:/app/checkpoints | |
| - ./uploads:/app/uploads | |
| environment: | |
| - PYTHONUNBUFFERED=1 | |
| - HF_TOKEN=${HF_TOKEN:-} # Optional: For HuggingFace API | |
| restart: always # Always restart on failure | |
| healthcheck: | |
| test: ["CMD", "curl", "-f", "http://localhost:8000/api/health"] | |
| interval: 30s | |
| timeout: 10s | |
| retries: 3 | |
| start_period: 10s | |