Spaces:
Running
on
Zero
Running
on
Zero
File size: 1,014 Bytes
7c3a67d 3e62df4 7c3a67d |
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 |
volumes:
servel-model-root:
services:
xtts:
build:
context: .
dockerfile: Dockerfile
environment:
COQUI_TOS_AGREED: 1
CUSTOM_MODEL_PATH: /root/.local/share/tts/tts_models--multilingual--multi-dataset--xtts_v2
ports:
- 8080:7860
volumes:
- type: volume
source: servel-model-root
target: /root/.local/share/tts/tts_models--multilingual--multi-dataset--xtts_v2
stdin_open: true # docker run -i
tty: true # docker run -t
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
healthcheck:
test: wget --no-verbose --tries=1 http://localhost || exit 1
interval: 5s
timeout: 30s
retries: 3
start_period: 5m
|