Fix XTTS loader compatibility and add default voice

This commit is contained in:
2025-12-09 11:37:55 +01:00
parent 8cd91b6f22
commit ca3e66f17a
14 changed files with 483 additions and 128 deletions

View File

@ -1,54 +1,55 @@
# docker-compose.yml – XTTS2 TTS Server
# Multi-Service Orchestrierung (Gateway, Worker, Redis)
version: "3.9"
services:
redis:
image: redis:7
container_name: redis
restart: always
ports:
- "6379:6379"
redis:
image: redis:7
container_name: redis
restart: always
ports:
- "6379:6379"
gateway:
build:
context: ./gateway
dockerfile: Dockerfile
container_name: tts-gateway
restart: always
environment:
- REDIS_HOST=redis
- GATEWAY_PORT=${GATEWAY_PORT}
volumes:
- ./gateway/voices:/app/voices
- ./gateway/logs:/app/logs
- ./gateway/port.txt:/app/port.txt
ports:
- "${GATEWAY_PORT}:8000"
depends_on:
- redis
gateway:
build:
context: ./gateway
dockerfile: Dockerfile
container_name: tts-gateway
restart: always
environment:
- REDIS_HOST=redis
- GATEWAY_PORT=${GATEWAY_PORT}
volumes:
- ./gateway/voices:/app/voices
- ./gateway/logs:/app/logs
- ./gateway/port.txt:/app/port.txt
ports:
- "${GATEWAY_PORT:-8000}:${GATEWAY_PORT:-8000}"
depends_on:
- redis
worker:
build:
context: ./worker
dockerfile: Dockerfile
container_name: tts-worker
restart: always
environment:
- REDIS_HOST=redis
- GPU_MODE=AUTO
deploy:
resources:
reservations:
devices:
- capabilities: [gpu]
volumes:
- ./worker/voices:/app/voices
- tts-models:/root/.local/share/tts
depends_on:
- redis
worker:
build:
context: ./worker
dockerfile: Dockerfile
container_name: tts-worker
restart: always
environment:
- REDIS_HOST=redis
- GPU_MODE=AUTO
deploy:
resources:
reservations:
devices:
- capabilities: [gpu]
volumes:
- ./worker/voices:/app/voices
depends_on:
- redis
tts-models:
networks:
default:
name: wlkns-net
default:
name: wlkns-net