Files
story-generator/silero-tts-service/docker-compose.cpu.yml
T

37 lines
912 B
YAML
Executable File

version: "3.9"
# CPU-вариант: запустить как docker compose -f docker-compose.yml -f docker-compose.cpu.yml
# Или отдельно: docker compose -f docker-compose.cpu.yml up --build -d
services:
tts-service:
build:
context: .
dockerfile: Dockerfile
container_name: silero-tts-service
restart: unless-stopped
ports:
- "8000:8000"
environment:
- MODEL=v5_ru
- DEVICE=cpu
- SAMPLE_RATE=48000
- TORCH_THREADS=0
- JIT_COMPILE=true
- MAX_QUEUE_SIZE=20
- PROMETHEUS_ENABLED=false
- LOG_LEVEL=INFO
volumes:
- ./models:/app/models:rw
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 120s
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"