-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
52 lines (48 loc) · 1.3 KB
/
compose.yml
File metadata and controls
52 lines (48 loc) · 1.3 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
46
47
48
49
50
51
52
# TTS Adapter - Local Development
# Usage:
# GPU: docker compose --profile gpu up --build
#
# Note: TTS requires GPU (qwen-tts needs CUDA)
name: tts
# Shared network for cross-container communication
networks:
render-network:
name: render-network
driver: bridge
# Common configuration (shared via YAML anchor)
x-common: &common
restart: unless-stopped
ports:
- "${TTS_PORT:-9880}:9880"
volumes:
# HuggingFace cache for model weights (use host's standard cache)
- ${HF_CACHE_PATH:-~/.cache/huggingface}:/home/app/.cache/huggingface
env_file:
- .env
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:9880/health', timeout=10)"]
interval: 30s
timeout: 10s
start_period: 120s
retries: 3
services:
# GPU service (required for TTS)
adapter-tts:
<<: *common
container_name: adapter-tts
profiles: ["gpu"]
pull_policy: missing
image: ${CI_REGISTRY_IMAGE:-tts}/adapter-tts:${CI_COMMIT_REF_SLUG:-latest}-${CI_PIPELINE_ID:-local}
networks:
- default
- render-network
build:
context: .
dockerfile: Dockerfile
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]