Available on dockerhub
$ docker run -d -p 222:22 -p 8080:80 -p 9418:9418 -e GIT_OWNER=owner -e GIT_URL=url -v /path/to/ssh/keys:/keys -v html:/html -v repos:/repos caaallum/stagit-serverCreate ssh key
$ ssh-keygen -t rsa -b 4096 -f ~/.ssh/stagitStart server
$ docker run -d -p 222:22 -p 8080:80 -p 9418:9418 -e GIT_OWNER=caaallum -e GIT_URL=localhost -v ~/.ssh:/keys -v html:/html -v repos:/repos caaallum/stagit-serverAdd git to ssh config
~/.ssh/config
Host localhost
User git
Hostname localhost
Port 222
IdentityFile ~/.ssh/stagit
PreferredAuthentications publickey
Create a repo
$ ssh localhost init --name test --description testClone repo and update repo
$ git clone git@localhost:222/repos/test.git
$ cd test
$ echo "# test" > README.md
$ git add README.md
$ git commit -m "Added readme"
$ git push origin masterHead to localhost:8080