Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

GitServer

a repository with docker templates for creating a git server with gitweb and lighttpd

Will set gitweb to port 8888 and git on 2222 in build image, gitweb is configured to check folder /home/git/repositories.

default password are:
root 123456789
git 12345679

Usage

Building image

<pre>
~:/ sudo docker build -t pbergman/git .
</pre>
## Starting container
for this example we bind the .ssh folder and repository folder from a local data folder
and bind port 8888 to local 8888 and 2222 to local 2222
<pre>
~:/ sudo docker run -d -p 2222:2222 -p 8888:8888 -v $PWD/data/.ssh:/home/git/.ssh -v $PWD/data/repositories:/home/git/repositories --name gitserver pbergman/git
</pre>

Docker Pull Command
Owner
pbergman
Source Repository