From de8d06726cae205ead43f8b1ac07ecc59a07363b Mon Sep 17 00:00:00 2001 From: RATDAD Date: Fri, 12 Dec 2025 01:49:48 -0500 Subject: Edited README, omitted /cgit.cgi/ from urls, added HTTP Basic Auth --- compose.yml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'compose.yml') diff --git a/compose.yml b/compose.yml index aca365f..4eea970 100644 --- a/compose.yml +++ b/compose.yml @@ -1,17 +1,21 @@ # # # cgit-docker compose example - -name: 'cgit-docker' - services: cgit: - container_name: cgit-docker - image: ratdad/cgit-docker:latest + 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 + env_file: + - .env ports: - 80:80 volumes: - - ./etc/httpd/conf/httpd.conf:/etc/httpd/conf/httpd.conf # apply custom httpd config - - ./etc/cgitrc:/etc/cgitrc # apply custom cgit runtime config - - ./opt/highlight.sh:/opt/highlight.sh # use a custom highlight script - - ./srv/git/:/srv/git # mount the dir cgit reads for repositories + # - ./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. -- cgit v1.2.3-70-g09d2