AI-Cardio-ECG / docker-compose.gpu.yml
abdullah2026's picture
Upload folder using huggingface_hub
fe387ed verified
Raw
History Blame Contribute Delete
551 Bytes
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