-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (43 loc) · 1.7 KB
/
Copy pathdocker-compose.yml
File metadata and controls
45 lines (43 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
services:
api:
build:
context: .
dockerfile: api/Dockerfile
restart: unless-stopped
ports:
- "8080:8080"
env_file:
- .env
environment:
- TZ=America/New_York
volumes:
# Mount the whole api/ source so uvicorn --reload picks up .py edits live —
# no docker cp, no image drift. Nested mounts below layer on top.
- ./api:/app
- ./api/data:/app/data
- ./api/templates:/app/templates
- ./web:/app/static
- ./graphify-out:/app/graphify-out:ro
- ./mtg/data:/app/mtg/data
- ./nightfall-incident:/app/nightfall
- rmapi-auth:/root/.config/rmapi
- gcal-auth:/root/.config/gcal
# Always-on GLaDOS voice (CPU Piper). Built separately from the hosaka repo:
# docker build -f ~/src/hosaka/Dockerfile.piper -t hosaka-piper:latest ~/src/hosaka
# No torch, glados baked into the image. Keeps /hosaka's glados live even when
# the home GPU box is off. The api container reaches it by service name over
# the compose network (TTS_PIPER_UPSTREAM defaults to hosaka-piper:8123); no
# ports are published -- only api talks to it.
hosaka-piper:
image: hosaka-piper:latest
restart: unless-stopped
volumes:
# Pronunciation lexicon synced from the home box (scripts/sync_lexicon.sh,
# rsync --inplace). Single-file bind mount + hosaka's Lexicon mtime
# hot-reload => live pronunciation updates with no restart. The host file
# must exist before the container starts (else docker creates a dir);
# seed it with the first sync. Read-only: the container only reads it.
- /srv/hosaka-piper/lexicon.json:/opt/hosaka/.local/share/hosaka/lexicon.json:ro
volumes:
rmapi-auth:
gcal-auth: