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:
<<: *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"