From ef6c90c022704fa16b4ca086ee909b81ad28695b Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Fri, 5 Jun 2026 11:25:31 -0400 Subject: [PATCH] Revert "fix(deploy): move POSTGRES_PASSWORD default into .env.example" This reverts commit 42d9a7ba07c04d1e0ac1bc90c9548da6cf070ffc. --- .env.example | 2 +- compose.deploy.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index 95dcf31..84f9d65 100644 --- a/.env.example +++ b/.env.example @@ -9,4 +9,4 @@ STEWARD_SMTP__PASSWORD= # Password for the bundled Postgres; the steward service builds its # STEWARD_DATABASE_URL from it. Leave STEWARD_SECRET_KEY above unset to let the # app generate + persist one on the /data volume. -POSTGRES_PASSWORD=steward +POSTGRES_PASSWORD=change-me diff --git a/compose.deploy.yml b/compose.deploy.yml index 06109f1..2e19a38 100644 --- a/compose.deploy.yml +++ b/compose.deploy.yml @@ -22,7 +22,7 @@ services: # source bind-mounts: core + first-party plugins live inside the image. - app_data:/data 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 # /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. @@ -36,7 +36,7 @@ services: image: postgres:16-alpine environment: POSTGRES_USER: steward - POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-steward} POSTGRES_DB: steward volumes: - pgdata:/var/lib/postgresql/data