-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (68 loc) · 1.7 KB
/
docker-compose.yml
File metadata and controls
72 lines (68 loc) · 1.7 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: '3.8'
services:
app:
build: .
ports:
- "8000:8000"
- "9091:9091" # Discord Audio Bridge for voice-mode MCP
volumes:
- .:/app
- ~/.claude:/root/.claude
environment:
- PYTHONPATH=/app
- PYTHONDONTWRITEBYTECODE=1
- PYTHONUNBUFFERED=1
- DISCORD_TOKEN=${DISCORD_TOKEN}
- WHISPER_CPP_BASE_URL=http://whisper-stt:9000
- DISCORD_AUDIO_BRIDGE_PORT=9091
stdin_open: true
tty: true
depends_on:
whisper-stt:
condition: service_healthy
piper-tts:
condition: service_healthy
whisper-stt:
image: onerahmet/openai-whisper-asr-webservice:latest-gpu
ports:
- "9090:9000"
environment:
- ASR_MODEL=base
- ASR_ENGINE=openai_whisper
- ASR_MODEL_PATH=/data/whisper
- UVICORN_LOG_LEVEL=critical
- UVICORN_ACCESS_LOG_DISABLED=true
volumes:
- whisper-models:/data/whisper
expose:
- "9000"
logging:
driver: "none"
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:9000/docs')"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
piper-tts:
build: ./services/piper-http
ports:
- "8080:8080"
volumes:
- piper-models:/models
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8080/health')"]
interval: 10s
timeout: 5s
retries: 3
start_period: 15s
volumes:
whisper-models:
piper-models: