RVC-CH / docker-compose.yml
LosCaquitos's picture
Create docker-compose.yml
7d24ce2
raw
history blame
1 kB
version: '3.8'
services:
rvc-voice-conversion:
build: .
container_name: rvc-voice-conversion
ports:
- "7860:7860"
volumes:
# Persist data across container restarts
- ./jobs:/app/jobs
- ./models:/app/models
- ./uploads:/app/uploads
- ./temp:/app/temp
- ./video_previews:/app/video_previews
# Optional: mount custom models
- ./custom_models:/app/custom_models:ro
environment:
- PORT=7860
- GRADIO_SERVER_NAME=0.0.0.0
- GRADIO_SERVER_PORT=7860
- PYTHONUNBUFFERED=1
- TZ=America/Sao_Paulo
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:7860"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
deploy:
resources:
limits:
cpus: '2'
memory: 4G
reservations:
cpus: '1'
memory: 2G
networks:
- rvc-network
networks:
rvc-network:
driver: bridge