Let container run as user and set correct restart policy

This commit is contained in:
Mario Hüttel 2024-11-23 17:06:37 +01:00
parent 08a5f97fd4
commit 25b592ee39

View File

@ -5,6 +5,7 @@ services:
shimatta-kenkyusho-web: shimatta-kenkyusho-web:
<<: *restart_policy <<: *restart_policy
build: . build: .
user: "${DJANGO_USER_ID}:${DJANGO_USER_GID}"
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"