|
|
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
|
|
|
tty: true
|
|
|
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
|
|
|
|
|
|
|
|
|
|