Custom cgit server built on debian slim running nginx and fcgiwrap.
909
A lightweight containerized cgit instance with support for:
The container was built on debian slim. Added cgit, nginx, and fcgiwrap.
repos/.make up.http://localhostThe bare git repositories are located in the /srv/git folder inside the container. This needs to be mounted in the container as a volume.
A generic, simple cgitrc file (/etc/cgitrc) exists in the container. Provide your own file for customizations.
cgit is installed in the default locations.
Default webroot: /usr/share/cgit
Default cgit.cgi: /usr/lib/cgit
To customize the web resources, you need to make the changes inside your cgitrc file. A separate folder/volume should be mounted in the container with the files.
Ex: res mounted as /usr/share/cgit/res
docker run -d USER/cgit:latest --name cgit -p 80:80 -v repos:/srv/git:ro -v res:/usr/share/cgit/res:ro -v cgitrc:/etc/cgitrc:ro
An example docker-compose file.
services:
cgit:
container_name: cgit
image: cbinder20/cgit:1.1
ports:
- "80:80"
volumes:
- repos:/srv/git:ro
- res:/usr/share/cgit/res:ro
- cgitrc:/etc/cgitrc:ro
restart: unless-stopped
Content type
Image
Digest
sha256:05dc05bb9…
Size
127.3 MB
Last updated
5 months ago
docker pull cbinder20/cgit