A scratch-built container featuring cgit, nginx, and a git mirror synchronization daemon.
7.4K
A scratch-built container featuring cgit, nginx, and a git mirror synchronization daemon.
Create a repos.list file containing repository URLs:
https://git.zx2c4.com/cgit.git
[email protected]:you/your-private-repo.git
Run the container:
docker run -d \
-p 8080:80 \
-v $(pwd)/repos.list:/etc/cgit/repos.list:ro \
-v git-data:/var/lib/git \
h3nc4/cgit-slim
| Variable | Default | Description |
|---|---|---|
SYNC_INTERVAL | 3600 | Synchronization interval in seconds. |
REPO_LIST | /etc/cgit/repos.list | Path to the repository list file. |
GIT_ROOT | /var/lib/git | Storage path for git repositories. |
| Path | Description |
|---|---|
/var/lib/git | Persistent storage for mirrored repositories. |
/etc/cgit/repos.list | Input file listing repositories to mirror. |
/etc/cgitrc | Optional override for cgit configuration. |
/run/.ssh | Optional directory for SSH keys. |
For private repositories using SSH, mount your keys under /run/.ssh:
-v /path/to/ssh-keys/id_ed25519:/run/.ssh/id_ed25519:ro \
Ensure the directory is readable by UID 1000.
cgit slim is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
cgit slim is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with cgit slim. If not, see https://www.gnu.org/licenses/.
Content type
Image
Digest
sha256:ee1f9ae6c…
Size
53.5 MB
Last updated
2 days ago
docker pull h3nc4/cgit-slim