diff --git a/compose.yaml b/compose.yaml index 6dd364d..e0e54cb 100644 --- a/compose.yaml +++ b/compose.yaml @@ -13,6 +13,7 @@ services: build: context: . dockerfile: Dockerfile + user: "0:${NGINX_GID:-0" volumes: - ${SERVER_STATIC_ROOT}:/app/staticfiles - ${SERVER_MEDIA_ROOT}:/app/media @@ -31,4 +32,4 @@ services: restart: unless-stopped volumes: - postgres_data: \ No newline at end of file + postgres_data: diff --git a/entrypoint.sh b/entrypoint.sh index 7302a88..a0f1b38 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -22,6 +22,7 @@ echo "Starting Gunicorn..." exec gunicorn --bind unix:/run/sockets/repex.sock \ --workers 3 \ --timeout 60 \ + --umask 007 \ --access-logfile - \ --error-logfile - \ config.wsgi:application