From bddadc867b490b26860c1f423db9d9ea8fb82097 Mon Sep 17 00:00:00 2001 From: BeauTroll <-> Date: Wed, 17 Dec 2025 05:59:46 +0100 Subject: [PATCH] Make USER_UID and USER_GID configurable via environment variables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Allow overriding user and group IDs through environment variables with sensible defaults (1000), providing flexibility for different host system configurations. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index ff98575..527c83a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,8 +9,8 @@ services: redis: condition: service_started environment: - - USER_UID=1000 - - USER_GID=1000 + - USER_UID=${USER_UID:-1000} + - USER_GID=${USER_GID:-1000} - GITEA__database__DB_TYPE=postgres - GITEA__database__HOST=db:5432 - GITEA__database__DATABASE=${POSTGRES_DATABASE}