HumanFace2ComicFaceGenerator / docker-compose.yml
MuhammadQasimShabbir3's picture
fixed the model path for inference.
83180d6
Raw History Blame Contribute Delete
970 Bytes
version: '3.8'
services:
human-to-comic:
build:
context: .
dockerfile: Dockerfile
container_name: human-to-comic-generator
ports:
- "7860:7860"
environment:
- TORCH_HOME=/app/.cache/torch
- PYTHONUNBUFFERED=1
- GENERATOR_CHECKPOINT=/app/model_weights/generator_best.pth
volumes:
- ./model_weights:/app/model_weights:ro
- torch_cache:/app/.cache/torch
- uploads:/app/uploads
runtime: nvidia
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:7860/api/predict"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
volumes:
torch_cache:
driver: local
uploads:
driver: local
networks:
default:
name: human-to-comic-network
driver: bridge