diff options
| author | RATDAD <lambda@disroot.org> | 2025-12-12 01:49:48 -0500 |
|---|---|---|
| committer | RATDAD <lambda@disroot.org> | 2025-12-12 01:49:48 -0500 |
| commit | de8d06726cae205ead43f8b1ac07ecc59a07363b (patch) | |
| tree | 7b7cf48605040f0f07c618c2b78d7aad927249b6 /compose.yml | |
| parent | 0c7bf0252aa5b9a2c3a3d95ce84370a3d67cb62b (diff) | |
| download | cgit-docker-de8d06726cae205ead43f8b1ac07ecc59a07363b.tar.gz cgit-docker-de8d06726cae205ead43f8b1ac07ecc59a07363b.tar.bz2 cgit-docker-de8d06726cae205ead43f8b1ac07ecc59a07363b.zip | |
Edited README, omitted /cgit.cgi/ from urls, added HTTP Basic Auth
Diffstat (limited to 'compose.yml')
| -rw-r--r-- | compose.yml | 22 |
1 files changed, 13 insertions, 9 deletions
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. |
