From b670a52e4b7df8767b28abdedec318d2d9a59ea2 Mon Sep 17 00:00:00 2001 From: Matthias Lucas Jaros Date: Sat, 11 Jul 2026 12:15:15 +0200 Subject: Updated example docker-compose --- docker-compose.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 40e412c..59617a9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,22 +1,25 @@ # example config services: cgit: + image: jarlucmat/cgit:latest restart: always container_name: cgit - build: . ports: - "8086:80" environment: + # uid and gid should match the id used for your git repos + # so that cgit has the permissions to read them PUID: "1000" PGID: "1000" volumes: - - ./path/to/your/git/repos:/srv/git/:ro + # you need to overwrite the config to set your repos + - ./cgitrc:/etc/cgit/cgitrc:ro - cgit-cache:/opt/cgit/cache:rw - # if you want to override the default style, logo, favicon, config, etc + - ./path/to/your/git/repos:/srv/git/:ro + # if you want to override the default style, logo, favicon, etc #- ./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