76efc459bb
- Lean file-backed accounts (server/src/accounts.ts): scrypt-hashed passwords, hashed bearer tokens, per-user backup blob; persisted under DATA_DIR. /api routes (register/login/logout, PUT/GET /save) with per-IP throttle + 48MB body limit. - Client cloud lib + Settings "Cloud sync": sign up / sign in, back up this device, restore from cloud (whole-backup push/pull, last-write-wins). Local-first default; the assistant key (localStorage) is never part of the synced Dexie backup. - Pathbuilder 2e import: the existing character import now detects a Pathbuilder build JSON and converts it to a PF2e character (abilities/HP/saves/skills). - Dockerfile creates a node-owned /data; compose mounts a named ttrpg-data volume. - (Spectator links = existing /play?room=CODE; PDF export = existing Print.) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
37 lines
1.0 KiB
YAML
37 lines
1.0 KiB
YAML
# Self-contained compose project for ttrpg.briggen.dev.
|
|
# Deploy: rsync the repo to /root/briggen-dev/ttrpg/, place this file there as
|
|
# docker-compose.yml, then `docker compose up -d --build`.
|
|
# Joins the EXISTING external `proxy` network — the shared Traefik stack is untouched.
|
|
name: ttrpg
|
|
|
|
services:
|
|
ttrpg:
|
|
build: .
|
|
container_name: ttrpg
|
|
restart: unless-stopped
|
|
environment:
|
|
- PORT=8787
|
|
- STATIC_DIR=/app/dist
|
|
- NODE_ENV=production
|
|
- DATA_DIR=/data
|
|
- ALLOWED_ORIGINS=https://ttrpg.briggen.dev
|
|
volumes:
|
|
- ttrpg-data:/data
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.ttrpg.rule=Host(`ttrpg.briggen.dev`)"
|
|
- "traefik.http.routers.ttrpg.entrypoints=websecure"
|
|
- "traefik.http.routers.ttrpg.tls.certresolver=letsencrypt"
|
|
- "traefik.http.services.ttrpg.loadbalancer.server.port=8787"
|
|
networks:
|
|
- proxy
|
|
|
|
volumes:
|
|
ttrpg-data:
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|