# Standalone frontend service (the full application orchestration lives in # the repository root `docker-compose.yml`). # # docker compose up --build # # Frontend: http://localhost:3000 (Nginx proxies /api to the backend). # Backend: http://localhost:8000 (Swagger docs at /api/v1/docs). services: frontend: build: . ports: - "3000:80" depends_on: backend: condition: service_healthy restart: unless-stopped # Included so this compose file works on its own (mirrors the root file). backend: build: ../backend ports: - "8000:8000" volumes: - ../data/db:/app/data/db environment: - DATABASE_URL=sqlite:///./data/db/newzy.db healthcheck: test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"] interval: 30s timeout: 5s retries: 3 restart: unless-stopped