Docker化初步版本完成

This commit is contained in:
Kenn Zhang
2024-01-23 17:00:31 +08:00
parent 866cde6f8b
commit d96b7d65ec
6 changed files with 133 additions and 20 deletions

31
docker-compose.yaml Normal file
View File

@@ -0,0 +1,31 @@
version: '3.8'
services:
gpt-sovits:
image: breakstring/gpt-sovits:dev-20240123.03
container_name: gpt-sovits-container
environment:
- is_half=False
volumes:
- G:/GPT-SoVITS-DockerTest/output:/workspace/output
- G:/GPT-SoVITS-DockerTest/logs:/workspace/logs
- G:/GPT-SoVITS-DockerTest/SoVITS_weights:/workspace/SoVITS_weights
- G:/GPT-SoVITS-DockerTest/reference:/workspace/reference
working_dir: /workspace
ports:
- "9870:9870"
- "9871:9871"
- "9872:9872"
- "9873:9873"
- "9874:9874"
shm_size: 16G
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: "all"
capabilities: [gpu]
stdin_open: true
tty: true
restart: unless-stopped