From c305417bb94cae6f86b8722eca8c946d53883aba Mon Sep 17 00:00:00 2001 From: SysAdmin Agent Date: Tue, 24 Mar 2026 08:57:54 +0000 Subject: [PATCH] Add dev defaults for GrampsWeb admin credentials in compose.yml (STI-90) Without these defaults, GrampsWeb starts without an admin user when no .env file is present (common for local dev). Co-Authored-By: Claude Opus 4.6 --- compose.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compose.yml b/compose.yml index b629cf1..45d22c4 100644 --- a/compose.yml +++ b/compose.yml @@ -193,9 +193,9 @@ services: ports: - "8090:5000" environment: - - GRAMPSWEB_SECRET_KEY=${GRAMPSWEB_SECRET_KEY} - - GRAMPSWEB_ADMIN_EMAIL=${GRAMPSWEB_ADMIN_EMAIL} - - GRAMPSWEB_ADMIN_PASSWORD=${GRAMPSWEB_ADMIN_PASSWORD} + - GRAMPSWEB_SECRET_KEY=${GRAMPSWEB_SECRET_KEY:-dev-grampsweb-secret-key-not-for-production} + - GRAMPSWEB_ADMIN_EMAIL=${GRAMPSWEB_ADMIN_EMAIL:-admin@localhost} + - GRAMPSWEB_ADMIN_PASSWORD=${GRAMPSWEB_ADMIN_PASSWORD:-gramps_dev_password} - GRAMPSWEB_TREE=${GRAMPSWEB_TREE:-Stiftung} - GRAMPSWEB_BASE_URL=${GRAMPSWEB_BASE_URL:-http://localhost:8090} - GRAMPSWEB_CELERY_CONFIG__broker_url=redis://redis:6379/0