docs: warn about special characters in passwords in .env.example

Docker Compose interprets $ as variable substitution in unquoted values.
Passwords containing $, &, # etc. must be wrapped in single quotes.

Authored by: Jack Levy
This commit is contained in:
Jack Levy
2026-03-15 11:25:00 -04:00
parent 1a8061539f
commit 0d49e17cea

View File

@@ -17,7 +17,10 @@ ENCRYPTION_SECRET_KEY=
# ─── PostgreSQL ─────────────────────────────────────────────────────────────── # ─── PostgreSQL ───────────────────────────────────────────────────────────────
POSTGRES_USER=congress POSTGRES_USER=congress
POSTGRES_PASSWORD=congress # If your password contains special characters ($, &, #, etc.), wrap it in single quotes
# to prevent Docker Compose from interpreting them as variable substitutions.
# Example: POSTGRES_PASSWORD='p@$$w0rd&safe'
POSTGRES_PASSWORD=change-me
POSTGRES_DB=pocketveto POSTGRES_DB=pocketveto
# These are constructed automatically from the above in docker-compose.yml. # These are constructed automatically from the above in docker-compose.yml.