docs: align docker-compose env docs with #7907 (required credentials, TRUST_PROXY default) - #7908
Conversation
…#7907 follow-up) ether#7907 made the production docker-compose require ADMIN_PASSWORD and the DB password (no insecure fallback) and defaulted TRUST_PROXY to false, but only changed docker-compose.yml. This brings the docs in line: - .env.default: document DOCKER_COMPOSE_APP_TRUST_PROXY (set true behind a trusted reverse proxy) and note ADMIN_PASSWORD is required (compose won't start while it's empty). - .env.dev.default: document the dev DOCKER_COMPOSE_APP_DEV_ENV_TRUST_PROXY. - README.md / doc/docker.md: update the embedded compose snippets to match the merged file (required ADMIN_PASSWORD/DB password, TRUST_PROXY default false). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
Code Review by Qodo
1. Missing final newline
|
PR Summary by QodoDocs: align docker-compose env templates with required creds + TRUST_PROXY default
AI Description
Diagram
High-Level Assessment
Files changed (4)
|
Follow-up to #7907 (merged), which changed
docker-compose.ymlto requireADMIN_PASSWORDand the database password and to defaultTRUST_PROXYtofalse— but didn't touch the docs/templates. This brings them in line.Changes
.env.default— documentDOCKER_COMPOSE_APP_TRUST_PROXY(settrueonly behind a trusted reverse proxy; otherwise HTTPS detection / secure cookies and client-IP handling are wrong), and note thatDOCKER_COMPOSE_APP_ADMIN_PASSWORDis now required (compose won't start while it's empty)..env.dev.default— document the dev equivalentDOCKER_COMPOSE_APP_DEV_ENV_TRUST_PROXY(defaultstrueindocker-compose.dev.yml).README.md/doc/docker.md— refresh the embedded compose snippets, which still showed the old:-admin/TRUST_PROXY:-truedefaults.Notes
docker compose upnow fails untilADMIN_PASSWORD/DB password are set, and anyone running behind a reverse proxy must now setDOCKER_COMPOSE_APP_TRUST_PROXY=true(previously the compose defaulted it totrue). Worth a release-note line..env.defaultstill ships an emptyDOCKER_COMPOSE_APP_ADMIN_PASSWORD=, so copying it and running now hard-fails by design. If that first-run friction is unwanted, softening the compose:?to a warning would be a follow-up to docker-compose: harden default credentials and proxy trust (draft, under discussion) #7907 (code, not docs) — left out of this PR intentionally.🤖 Generated with Claude Code