services: ecg-api: build: context: . dockerfile: Dockerfile.gpu container_name: cardioai-ecg-gpu ports: - "8000:8000" restart: unless-stopped environment: - PYTHONUNBUFFERED=1 deploy: resources: reservations: devices: - driver: nvidia count: 1 capabilities: [gpu] healthcheck: test: ["CMD-SHELL", "curl -f http://localhost:8000/health || exit 1"] interval: 30s timeout: 10s retries: 3 start_period: 60s