version: '3.8' services: q2api: build: context: . dockerfile: Dockerfile container_name: q2api ports: - "${PORT:-8000}:8000" env_file: - .env volumes: - ./:/app restart: unless-stopped command: uvicorn app:app --host 0.0.0.0 --port 8000 --workers 4 healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8000/healthz"] interval: 30s timeout: 10s retries: 3