/docker-gitweb-readonly

git-http-backend and gitweb

Primary LanguageShellMIT LicenseMIT

gitweb for readonly access of non-bare repos.

Usage

docker run \
    -p 8080:80 \
    -v /path/to/my/git/repo1:/var/lib/git/repo1:ro \
    -v /path/to/my/git/repo2:/var/lib/git/repo2:ro \
    kostyaesmukov/gitweb-readonly

Or with a custom base url:

docker run \
    -p 8080:80 \
    -e GITWEB_BASE_PATH=/gitweb \
    -v /path/to/my/git_repos:/var/lib/git:ro \
    kostyaesmukov/gitweb-readonly

Clone

git clone http://localhost:8080/repo1.git

Related projects: