tts / docker-compose.yml
张明
Add application file
6d66075
raw
history blame contribute delete
506 Bytes
version: '3.8'
services:
moss-tts:
build: .
container_name: moss-tts-nano
ports:
- "7860:7860"
volumes:
# 持久化模型文件,避免每次重新下载
- moss_tts_models:/data/models
environment:
- PYTHONUNBUFFERED=1
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:7860/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 120s
volumes:
moss_tts_models:
driver: local