From 0701e4d908f407c8893d8c3fcd5e1ea4dec0e937 Mon Sep 17 00:00:00 2001 From: Matthias Lucas Jaros Date: Sat, 11 Jul 2026 11:29:08 +0200 Subject: Added entrypoint file to adjust uid and gid on the fly using docker-compose --- docker-compose.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'docker-compose.yml') diff --git a/docker-compose.yml b/docker-compose.yml index e97a947..fc68ebe 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,10 +5,16 @@ services: build: . ports: - "8086:80" + environment: + PUID: "1000" + PGID: "1000" volumes: - /srv/shares/git:/srv/git/:ro - - /srv/shares/cgit/cache:/opt/cgit/cache:rw + - cgit-cache:/opt/cgit/cache:rw - ./cgit.css:/opt/cgit/app/cgit.css:ro - ./cgit.png:/opt/cgit/app/cgit.png:ro - ./favicon.ico:/opt/cgit/app/favicon.ico:ro - ./cgitrc:/opt/cgit/cgitrc:ro + +volumes: + cgit-cache: -- cgit v1.3.1