Files
Nat20-Notes/docker-compose.example.yml
KansaiGaijin babc0f58ef multi-stage Dockerfile + player recap styles
Dockerfile: split into whisperx-base and runtime stages so app-only
changes skip the 10min pip install on rebuild. Example compose updated.

Player recap: replace hardcoded 'story so far' prompt with selectable
styles (story/diary/bullets/custom) via dropdown in Setup and Settings.

Settings: add NAT20_ONBOARDING_COMPLETED env var; fix merge logic so
env vars properly override defaults (not just empty DB values).
2026-07-10 16:25:52 +12:00

49 lines
1.1 KiB
YAML

# Example Docker Compose — uses a named volume so data persists across rebuilds
# without needing a specific host path. Copy to docker-compose.yml and customise.
services:
whisperx-base:
build:
context: ./backend
target: whisperx-base
image: nat20-whisperx-base:latest
restart: "no"
backend:
build:
context: ./backend
target: runtime
image: nat20-backend:latest
restart: unless-stopped
depends_on:
- whisperx-base
environment:
# Skip setup wizard on container restart (or "false" to force re-run)
NAT20_ONBOARDING_COMPLETED: "true"
volumes:
- app_data:/data
- hf_cache:/root/.cache/huggingface
- torch_cache:/root/.cache/torch
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
ports:
- "8000:8000"
frontend:
build: ./frontend
restart: unless-stopped
depends_on:
- backend
ports:
- "8020:8020"
volumes:
app_data:
hf_cache:
torch_cache: