docker run -d \
--name=cgit \
-v /path/to/config:/config \
-v /path/to/git/root:/git:ro \
majormajors/cgit:latest
The config file will be read from /config/cgitrc, so you can bind /config if you want to edit it from the host. See cgitrc.5.txt for more info about configuring cgit.
By default, all the git repos in the directory bound to /git will be displayed in cgit. You can just change this by removing the scan-path line from the config and defining individual repos.
Content type
Image
Digest
sha256:eb87f945b…
Size
30.6 MB
Last updated
almost 3 years ago
docker pull majormajors/cgit