From 25b592ee3984c7ecb40ea4bd2b60edba98ab59a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Sat, 23 Nov 2024 17:06:37 +0100 Subject: [PATCH] Let container run as user and set correct restart policy --- compose.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/compose.yaml b/compose.yaml index 6eea7c7..4d19477 100644 --- a/compose.yaml +++ b/compose.yaml @@ -5,6 +5,7 @@ services: shimatta-kenkyusho-web: <<: *restart_policy build: . + user: "${DJANGO_USER_ID}:${DJANGO_USER_GID}" volumes: - "${DJANGO_STATIC_VOL:-./run/static}:/var/static" - "${DJANGO_MEDIA_VOL:-./run/media}:/var/media"