From 00dffa8cf5cac8322cb47f2222e424d3960e7939 Mon Sep 17 00:00:00 2001 From: RATDAD Date: Sat, 13 Dec 2025 21:00:08 -0500 Subject: Added Git Smart HTTP Support --- compose.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'compose.yml') diff --git a/compose.yml b/compose.yml index 4eea970..82b5ce8 100644 --- a/compose.yml +++ b/compose.yml @@ -3,12 +3,14 @@ # cgit-docker compose example services: cgit: - build: - context: . - dockerfile: Dockerfile # You can also use the pre-built containers hosted at ghcr and docker. # image: ghcr.io/bigratdad/cgit:latest # image: ratdad/cgit:latest + build: + context: . + dockerfile: Dockerfile + # args: + # - ENABLE_GIT_HTTP=0 env_file: - .env ports: @@ -16,6 +18,5 @@ services: volumes: # - ./favicon.ico:/srv/www/htdocs/cgit/favicon.ico # custom favicon # - ./cgit.css:/srv/www/htdocs/cgit/cgit.css # custom cgit.css - - ./etc/httpd/conf/httpd.conf:/etc/httpd/conf/httpd.conf # You may want to change the httpd config on the server. - - ./etc/cgitrc:/etc/cgitrc # You can (and should) bind your own cgitrc. - - ./srv/git/:/srv/git # Bind the location of your git repos to /srv/git in the container. + - ./etc/cgitrc:/etc/cgitrc # You can (and should) bindmount your own cgitrc. + - ./srv/git/:/srv/git:ro # I do not recommend creating repos from inside the container. Make it read-only. \ No newline at end of file -- cgit v1.2.3-70-g09d2