-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.cpu.yml
More file actions
45 lines (43 loc) · 1.14 KB
/
Copy pathdocker-compose.cpu.yml
File metadata and controls
45 lines (43 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# CPU-only version - use with: docker compose -f docker-compose.cpu.yml up --build
services:
qwen3-tts:
build:
context: .
dockerfile: Dockerfile.cpu
args:
MODEL_NAME: ${MODEL_NAME:-0.6B}
image: qwen3-tts-fastapi:cpu
container_name: qwen3-tts
ports:
- "${EXTERNAL_PORT:-8005}:8880"
environment:
- MODEL_NAME=${MODEL_NAME:-0.6B}
- DEVICE=cpu
- DEFAULT_VOICE=${DEFAULT_VOICE:-default}
- DEFAULT_FORMAT=${DEFAULT_FORMAT:-mp3}
- MAX_INPUT_LENGTH=${MAX_INPUT_LENGTH:-4096}
volumes:
- ./voices:/app/voices
- qwen3-tts-cache:/app/cache
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8880/health"]
interval: 30s
timeout: 60s
retries: 3
start_period: 180s
gradio-ui:
build:
context: ./ui
image: qwen3-tts-gradio:latest
container_name: qwen3-tts-gradio
ports:
- "${GRADIO_PORT:-7860}:7860"
environment:
- API_URL=http://qwen3-tts:8880
depends_on:
qwen3-tts:
condition: service_healthy
restart: unless-stopped
volumes:
qwen3-tts-cache: