diff options
| author | RATDAD <lambda@disroot.org> | 2025-12-13 21:00:08 -0500 |
|---|---|---|
| committer | RATDAD <lambda@disroot.org> | 2025-12-13 21:00:08 -0500 |
| commit | 00dffa8cf5cac8322cb47f2222e424d3960e7939 (patch) | |
| tree | 7db0460694037b063f97058ecb9eb664b6162b45 /compose.yml | |
| parent | de8d06726cae205ead43f8b1ac07ecc59a07363b (diff) | |
| download | cgit-docker-00dffa8cf5cac8322cb47f2222e424d3960e7939.tar.gz cgit-docker-00dffa8cf5cac8322cb47f2222e424d3960e7939.tar.bz2 cgit-docker-00dffa8cf5cac8322cb47f2222e424d3960e7939.zip | |
Added Git Smart HTTP Support
Diffstat (limited to 'compose.yml')
| -rw-r--r-- | compose.yml | 13 |
1 files changed, 7 insertions, 6 deletions
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 |
