From 146c2da4f3b35fb19b7a3def47bc91080a61892c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Mon, 25 Nov 2024 23:38:37 +0100 Subject: [PATCH] Make the container run as root by default, if env variables are missing, to be backwards compatible to old setup --- compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compose.yaml b/compose.yaml index 4d19477..699f024 100644 --- a/compose.yaml +++ b/compose.yaml @@ -5,7 +5,7 @@ services: shimatta-kenkyusho-web: <<: *restart_policy build: . - user: "${DJANGO_USER_ID}:${DJANGO_USER_GID}" + user: "${DJANGO_USER_ID:-0}:${DJANGO_USER_GID:-0}" volumes: - "${DJANGO_STATIC_VOL:-./run/static}:/var/static" - "${DJANGO_MEDIA_VOL:-./run/media}:/var/media"