Spaces:
Sleeping
Sleeping
| version: '3.8' | |
| services: | |
| backend: | |
| build: | |
| context: ./backend | |
| dockerfile: Dockerfile | |
| ports: | |
| - "8001:8001" | |
| environment: | |
| - PYTHONUNBUFFERED=1 | |
| - DATABASE_URL=sqlite:///./translations.db | |
| volumes: | |
| - ./backend/data:/app/data | |
| - ./backend/models:/app/models | |
| healthcheck: | |
| test: ["CMD", "curl", "-f", "http://localhost:8001/health"] | |
| interval: 30s | |
| timeout: 10s | |
| retries: 3 | |
| restart: unless-stopped | |
| frontend: | |
| build: | |
| context: ./frontend | |
| dockerfile: Dockerfile | |
| ports: | |
| - "8501:8501" | |
| environment: | |
| - PYTHONUNBUFFERED=1 | |
| - API_BASE_URL=http://backend:8001 | |
| depends_on: | |
| - backend | |
| healthcheck: | |
| test: ["CMD", "curl", "-f", "http://localhost:8501/_stcore/health"] | |
| interval: 30s | |
| timeout: 10s | |
| retries: 3 | |
| restart: unless-stopped | |
| standalone: | |
| build: | |
| context: . | |
| dockerfile: Dockerfile.standalone | |
| ports: | |
| - "8502:8501" | |
| environment: | |
| - PYTHONUNBUFFERED=1 | |
| volumes: | |
| - ./data:/app/data | |
| - ./models:/app/models | |
| healthcheck: | |
| test: ["CMD", "curl", "-f", "http://localhost:8501/_stcore/health"] | |
| interval: 30s | |
| timeout: 10s | |
| retries: 3 | |
| restart: unless-stopped | |
| profiles: | |
| - standalone | |
| networks: | |
| default: | |
| driver: bridge | |
| volumes: | |
| backend_data: | |
| models_cache: | |