From c2f9263f521a89a9c73483d7ae31674ef547510c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Sun, 14 Jun 2026 22:12:16 +0200 Subject: [PATCH] Fix docker-compose not forwarding SECRET_KEY into container SECRET_KEY, APP_URL, and DEBUG were hardcoded/missing in the compose environment block, so passing SECRET_KEY from the host env had no effect and the container always raised ImproperlyConfigured in production mode. All three are now forwarded via ${VAR} substitution, consistent with the other configurable values. --- docker-compose.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index e099352..3750be4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,16 +1,17 @@ --- services: timetracker: - image: ${REGISTRY_URL:-registry.kucharczyk.xyz}/timetracker:1.7.0 + image: ${REGISTRY_URL:-registry.kucharczyk.xyz}/timetracker:latest build: context: . dockerfile: Dockerfile container_name: timetracker environment: - - DEBUG=false + - DEBUG=${DEBUG:-false} + - SECRET_KEY=${SECRET_KEY} - TZ=${TZ:-Europe/Prague} # APP_URL drives ALLOWED_HOSTS and CSRF_TRUSTED_ORIGINS unless overridden. - - APP_URL=https://tracker.kucharczyk.xyz + - APP_URL=${APP_URL:-https://tracker.kucharczyk.xyz} - PUID=${PUID:-1000} - PGID=${PGID:-100} - DATA_DIR=${DATA_DIR:-/home/timetracker/app/data}