-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
64 lines (60 loc) · 1.59 KB
/
docker-compose.prod.yml
File metadata and controls
64 lines (60 loc) · 1.59 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
services:
frontend:
image: ghcr.io/lawndlwd/zync-frontend:latest
ports:
- "${ZYNC_PORT:-8080}:80"
depends_on:
backend:
condition: service_healthy
restart: unless-stopped
backend:
image: ghcr.io/lawndlwd/zync-backend:latest
ports:
- "3001:3001"
env_file:
- path: .env
required: false
environment:
- NODE_ENV=${NODE_ENV:-production}
- WHISPER_SERVICE_URL=http://whisper:9100
volumes:
- zync-data:/app/data
- zync-documents:/app/documents
healthcheck:
test: ["CMD", "node", "-e", "fetch('http://localhost:3001/api/health').then(r=>{if(!r.ok)process.exit(1)})"]
interval: 15s
timeout: 5s
retries: 3
start_period: 30s
restart: unless-stopped
whisper:
image: ghcr.io/lawndlwd/zync-whisper:latest
expose:
- "9100"
environment:
- WHISPER_PORT=9100
- WHISPER_MODEL=${WHISPER_MODEL:-base.en}
- WHISPER_COMPUTE_TYPE=${WHISPER_COMPUTE_TYPE:-int8}
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:9100/health')"]
interval: 30s
timeout: 5s
retries: 3
start_period: 60s
profiles:
- voice
restart: unless-stopped
wakeword:
image: ghcr.io/lawndlwd/zync-wakeword:latest
ports:
- "9000:9000"
environment:
- WAKEWORD_PORT=9000
- WAKEWORD_MODEL=${WAKEWORD_MODEL:-hey_jarvis}
- WAKEWORD_THRESHOLD=${WAKEWORD_THRESHOLD:-0.5}
profiles:
- voice
restart: unless-stopped
volumes:
zync-data:
zync-documents: