- staging/prod: postgres:16-alpine per the llmdev Docker spec (healthcheck,
log and memory limits, no host port); the app builds DATABASE_URI from
POSTGRES_PASSWORD and waits for a healthy database; MongoDB kept for one
release (rollback path, transfer source)
- dev: PostgreSQL replaces MongoDB and Mongo Express (host port 5433, checked
and registered); integration test rewritten with pg
- deploy.sh: pg_dump (and, during the switch, mongodump) before the build
- pg/@types/pg pinned to the adapter's 8.20.0 (one copy, no type clash)
- docs: CLAUDE.md, architecture/testing steering, deploy workflow, DOCKER.md;
staging switch runbook in the design
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>