Files
xtts-server/docker-compose.yml

55 lines
834 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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"
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
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
networks:
default:
name: wlkns-net