Revert "fix(deploy): move POSTGRES_PASSWORD default into .env.example"
This reverts commit 42d9a7ba07.
This commit is contained in:
+1
-1
@@ -9,4 +9,4 @@ STEWARD_SMTP__PASSWORD=
|
|||||||
# Password for the bundled Postgres; the steward service builds its
|
# Password for the bundled Postgres; the steward service builds its
|
||||||
# STEWARD_DATABASE_URL from it. Leave STEWARD_SECRET_KEY above unset to let the
|
# STEWARD_DATABASE_URL from it. Leave STEWARD_SECRET_KEY above unset to let the
|
||||||
# app generate + persist one on the /data volume.
|
# app generate + persist one on the /data volume.
|
||||||
POSTGRES_PASSWORD=steward
|
POSTGRES_PASSWORD=change-me
|
||||||
|
|||||||
+2
-2
@@ -22,7 +22,7 @@ services:
|
|||||||
# source bind-mounts: core + first-party plugins live inside the image.
|
# source bind-mounts: core + first-party plugins live inside the image.
|
||||||
- app_data:/data
|
- app_data:/data
|
||||||
environment:
|
environment:
|
||||||
- STEWARD_DATABASE_URL=postgresql+asyncpg://steward:${POSTGRES_PASSWORD}@db/steward
|
- STEWARD_DATABASE_URL=postgresql+asyncpg://steward:${POSTGRES_PASSWORD:-steward}@db/steward
|
||||||
# Optional: if unset, the app generates a key and persists it to
|
# Optional: if unset, the app generates a key and persists it to
|
||||||
# /data/secret.key, so sessions survive restarts via the app_data volume.
|
# /data/secret.key, so sessions survive restarts via the app_data volume.
|
||||||
# Set STEWARD_SECRET_KEY in .env to pin it explicitly across volume resets.
|
# Set STEWARD_SECRET_KEY in .env to pin it explicitly across volume resets.
|
||||||
@@ -36,7 +36,7 @@ services:
|
|||||||
image: postgres:16-alpine
|
image: postgres:16-alpine
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: steward
|
POSTGRES_USER: steward
|
||||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-steward}
|
||||||
POSTGRES_DB: steward
|
POSTGRES_DB: steward
|
||||||
volumes:
|
volumes:
|
||||||
- pgdata:/var/lib/postgresql/data
|
- pgdata:/var/lib/postgresql/data
|
||||||
|
|||||||
Reference in New Issue
Block a user