From 5c992ad2988250df2c180acef461304a99429332 Mon Sep 17 00:00:00 2001 From: Diego Cirilo Date: Sat, 14 Feb 2026 22:14:06 -0300 Subject: [PATCH] fix socket permissions --- compose.yaml | 3 ++- entrypoint.sh | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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