Make the container run as root by default, if env variables are missing, to be backwards compatible to old setup

This commit is contained in:
Mario Hüttel 2024-11-25 23:38:37 +01:00
parent e74a28b0a8
commit 146c2da4f3

View File

@ -5,7 +5,7 @@ services:
shimatta-kenkyusho-web: shimatta-kenkyusho-web:
<<: *restart_policy <<: *restart_policy
build: . build: .
user: "${DJANGO_USER_ID}:${DJANGO_USER_GID}" user: "${DJANGO_USER_ID:-0}:${DJANGO_USER_GID:-0}"
volumes: volumes:
- "${DJANGO_STATIC_VOL:-./run/static}:/var/static" - "${DJANGO_STATIC_VOL:-./run/static}:/var/static"
- "${DJANGO_MEDIA_VOL:-./run/media}:/var/media" - "${DJANGO_MEDIA_VOL:-./run/media}:/var/media"