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