version: "3.9" services: api: build: . ports: - "8000:8000" env_file: - .env environment: - APP_ENV=development - DEBUG=true volumes: - .:/app command: > uvicorn app.main:create_app --factory --host 0.0.0.0 --port 8000 --reload healthcheck: test: ["CMD", "python", "-c", "import httpx; r = httpx.get('http://localhost:8000/health'); r.raise_for_status()"] interval: 30s timeout: 5s retries: 3