- 去掉 books/chapters CRUD、SQLAlchemy、SQLite 依赖 - 核心只剩 /api/tts + 智能分段 + 自动重试 - 新增 API_TOKEN 环境变量,管理接口 Bearer Token 鉴权 - 管理接口精简为 preview + config - 前端重写:TTS 试听 + 配置查看 + 接口文档 - Dockerfile/docker-compose 清理,去掉数据库卷
26 lines
585 B
YAML
26 lines
585 B
YAML
version: "3.8"
|
|
|
|
services:
|
|
tts-proxy:
|
|
build: .
|
|
container_name: tts-proxy
|
|
ports:
|
|
- "3333:3333"
|
|
environment:
|
|
- MIMO_API_KEY=${MIMO_API_KEY}
|
|
- MIMO_API_ENDPOINT=${MIMO_API_ENDPOINT:-https://api.xiaomimimo.com/v1/chat/completions}
|
|
- MIMO_TTS_MODEL=${MIMO_TTS_MODEL:-mimo-v2-audio-tts}
|
|
- MIMO_VOICE=${MIMO_VOICE:-mimo_default}
|
|
- API_TOKEN=${API_TOKEN:-}
|
|
volumes:
|
|
- tts-audio:/app/audio
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 512M
|
|
cpus: "1.0"
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
tts-audio:
|