diff options
| author | 2026-07-11 11:36:53 +0200 | |
|---|---|---|
| committer | 2026-07-11 11:36:53 +0200 | |
| commit | e0f9c1f3deb03a7b723e2822877c8194bce3e595 (patch) | |
| tree | 047e9992a1d6f4aa3e3f2569e22d4dfaf0c9d2a8 | |
| parent | 0701e4d908f407c8893d8c3fcd5e1ea4dec0e937 (diff) | |
Moved cgitrc to /etc
Removed useless volume line in Dockerfile
| -rw-r--r-- | Dockerfile | 1 | ||||
| -rw-r--r-- | cgit_build.conf | 2 | ||||
| -rw-r--r-- | docker-compose.yml | 12 | ||||
| -rw-r--r-- | rootfs/etc/cgitrc (renamed from rootfs/opt/cgit/cgitrc) | 0 |
4 files changed, 8 insertions, 7 deletions
@@ -43,7 +43,6 @@ RUN chmod 755 -R /opt/cgit COPY entrypoint.sh /usr/local/bin/entrypoint.sh RUN chmod +x /usr/local/bin/entrypoint.sh -VOLUME ["/opt/git"] ENTRYPOINT ["entrypoint.sh"] CMD ["httpd-foreground"] EXPOSE 80 diff --git a/cgit_build.conf b/cgit_build.conf index e44b19f..e37d129 100644 --- a/cgit_build.conf +++ b/cgit_build.conf @@ -1,6 +1,6 @@ CGIT_SCRIPT_PATH = /opt/cgit/app -CGIT_CONFIG = /opt/cgit/cgitrc CACHE_ROOT = /opt/cgit/cache +CGIT_CONFIG = /etc/cgitrc prefix = /opt/cgit libdir = $(prefix) filterdir = $(libdir)/filters diff --git a/docker-compose.yml b/docker-compose.yml index fc68ebe..581dcfb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,3 +1,4 @@ +# example config services: cgit: restart: always @@ -9,12 +10,13 @@ services: PUID: "1000" PGID: "1000" volumes: - - /srv/shares/git:/srv/git/:ro + - /path/to/your/git/repos:/srv/git/:ro - 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 + # if you want to override the default style, logo, favicon, config, 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: diff --git a/rootfs/opt/cgit/cgitrc b/rootfs/etc/cgitrc index 7c39bf9..7c39bf9 100644 --- a/rootfs/opt/cgit/cgitrc +++ b/rootfs/etc/cgitrc |
