Spaces:
Sleeping
Sleeping
| version: '3.8' | |
| services: | |
| backend: | |
| build: . | |
| container_name: notes-backend | |
| ports: | |
| - "7860:7860" | |
| environment: | |
| - PYTHONUNBUFFERED=1 | |
| - PYTHONPATH=/app | |
| restart: unless-stopped | |
| healthcheck: | |
| test: ["CMD", "python", "-c", "import requests; requests.get('http://localhost:7860/health', timeout=2)"] | |
| interval: 30s | |
| timeout: 10s | |
| retries: 3 | |
| start_period: 5s | |
| volumes: | |
| - ./app:/app/app # For hot reload during development | |
| networks: | |
| - notes-network | |
| networks: | |
| notes-network: | |
| driver: bridge |