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