# Development overlay: live reload, the source mounted, SQLite instead of # Postgres, and the Vite dev server for the UI. # # docker compose -f docker-compose.yml -f docker-compose.dev.yml up # # The UI then runs on http://localhost:5173 and proxies /api to the backend. services: app: build: context: . target: runtime command: ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"] user: root volumes: - ./backend/app:/app/app:ro environment: LOG_LEVEL: DEBUG web: image: node:22-alpine working_dir: /web command: sh -c "npm install --no-audit --no-fund && npm run dev -- --host 0.0.0.0" environment: VITE_API_TARGET: http://app:8000 volumes: - ./frontend:/web ports: - "5173:5173" depends_on: - app