File size: 1,003 Bytes
7d24ce2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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