Files
sde-meeting-toolkit/docker-compose.yml
Matt Mabrey d6e83dcdf5 Document non-root container, shared login, and data folder permission fix
- PORTAINER_DEPLOY.md: add the chown step needed after the container
  switched to a non-root user, and note EACCES as the symptom if skipped.
- Update CHANGELOG for the shared login, non-root Dockerfile, and
  cap_drop/no-new-privileges hardening.
2026-09-29 18:03:39 -07:00

56 lines
2.3 KiB
YAML

# Standalone compose file for this tool.
#
# Joins the "proxy" Docker network so Nginx Proxy Manager can reach this
# container by name (sde-meeting-toolkit) the same way it reaches Work
# Package Suite's own internal nginx container. "proxy" must already exist
# on the host; it is not created here (external: true), since NPM's own
# stack owns it.
#
# Also stays on "default" (Compose's own auto-created network for this
# project). "proxy" is scoped to proxy-to-backend traffic only and has no
# route to the public internet, so without "default" too, the AI draft
# button's outbound call to api.anthropic.com fails (502: "Could not reach
# the Anthropic API"). Landing page and tool pages still work without it,
# since those never leave the container, which is why this was easy to miss.
services:
sde-meeting-toolkit:
build: .
container_name: sde-meeting-toolkit
restart: unless-stopped
ports:
- "5173:5173"
environment:
- MOCK_AI=${MOCK_AI:-false}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
- APP_USERS=${APP_USERS:-}
- APP_USERNAME=${APP_USERNAME:-}
- APP_PASSWORD=${APP_PASSWORD:-}
- RATE_LIMIT_MAX=${RATE_LIMIT_MAX:-20}
- RATE_LIMIT_WINDOW_MS=${RATE_LIMIT_WINDOW_MS:-300000}
- LOGIN_ATTEMPT_MAX=${LOGIN_ATTEMPT_MAX:-10}
- LOGIN_ATTEMPT_WINDOW_MS=${LOGIN_ATTEMPT_WINDOW_MS:-600000}
- LOGIN_LOCKOUT_MS=${LOGIN_LOCKOUT_MS:-900000}
- AUTH_LOG_FILE=${AUTH_LOG_FILE:-./data/auth-log.jsonl}
- SIGNIN_LOG_DEBOUNCE_MS=${SIGNIN_LOG_DEBOUNCE_MS:-1800000}
- TOKEN_LIMIT_PER_USER=${TOKEN_LIMIT_PER_USER:-0}
- TOKEN_USAGE_FILE=${TOKEN_USAGE_FILE:-./data/token-usage.json}
volumes:
# Persists the per-user token quota file across restarts and rebuilds.
# Without this, everyone's daily usage silently resets on every deploy.
- ./data:/app/data
networks:
- proxy
- default
# Hardening for a container that's reachable from the public internet
# (through Nginx Proxy Manager) and can itself reach the public internet
# (api.anthropic.com). Neither of these needs any Linux capability the
# app doesn't already have, and the app never needs to escalate privilege.
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
networks:
proxy:
external: true