initial: silero-tts-service + README
This commit is contained in:
1 parent
8c60c25ad2
commit
984b1fec6d
18 files changed
+2080
No files matched your search
Executable
+36
@@ -0,0 +1,36 @@
|
||||
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"
|
||||
Reference in new issue
Block a user