| version: "3.9" | |
| services: | |
| backend: | |
| build: | |
| context: . | |
| dockerfile: Dockerfile.backend | |
| ports: | |
| - "8000:8000" | |
| environment: | |
| # Data is served from local disk (backend/data/ volume or baked into image). | |
| # No HF httpfs needed — set HF_TOKEN only if dataset is private. | |
| - HF_TOKEN= | |
| healthcheck: | |
| test: ["CMD-SHELL", "python -c \"import urllib.request; urllib.request.urlopen('http://localhost:8000/api/info')\" || exit 1"] | |
| interval: 30s | |
| timeout: 30s | |
| retries: 5 | |
| start_period: 60s | |
| frontend: | |
| build: | |
| context: . | |
| dockerfile: Dockerfile.frontend | |
| ports: | |
| - "3000:80" | |
| depends_on: | |
| backend: | |
| condition: service_healthy | |
| networks: | |
| default: | |
| name: mutvar-network | |