No description
Find a file
William Brawner 5cd690d268 Update volumes for docker-compose file
Signed-off-by: William Brawner <me@wbrawner.com>
2019-12-26 18:12:44 -06:00
captain-definition Initial commit 2019-12-22 15:00:24 -06:00
cgitrc Initial commit 2019-12-22 15:00:24 -06:00
docker-compose.yml Update volumes for docker-compose file 2019-12-26 18:12:44 -06:00
Dockerfile Add jq for git hooks 2019-12-24 19:20:48 -06:00
entrypoint.sh Fix SSH key and config persistence 2019-12-22 15:37:32 -06:00
httpd.conf Initial commit 2019-12-22 15:00:24 -06:00
README.md Initial commit 2019-12-22 15:00:24 -06:00
sshd_config Initial commit 2019-12-22 15:00:24 -06:00
update-mirrors.sh Initial commit 2019-12-22 15:00:24 -06:00

cgit Dockerized

This is a simple dockerized version of cgit, which includes support for SSH and HTTP access. SSH access is restricted to key-based authentication only, and root logins aren't permitted.

Volumes

  • /etc/cgit.d
    • This directory should only contain a single file: cgitrc, which should contain any customization for the cgit instance according to the cgitrc spec.
  • /etc/ssh
    • This directory should be owned by root, and is used to persist the host SSH keys, along with the SSH configuration changes.
  • /git/.ssh
    • This directory should have 700 permissions and any files within it should have 600 permissions. The idea is to use it for adding an authorized_keys file
  • /pub/git
    • This is where the git repositories will be stored. Please note that all folders and files here should be owned by the git user, UID 1000.