Public Repository

Last pushed: 2 years ago
Short Description
docker image for gogs(the git source code service written by golang)
Full Description

From: codeskyblue/docker-gogs

docker-gogs
Dockerfile for gogs server(a self-hosted git service).

Usage
git pull codeskyblue/docker-gogs

mkdir /var/gogs
docker run -d -p 22:22 -p 3000:3000 -v /var/gogs:/data codeskyblue/docker-gogs
Open bowser and naviage to

http://youhost:3000
Config file in /var/gogs/gogs/conf/app.ini
git repo in /var/gogs/git
It's ok to change /var/gogs to other directory.

Test
ssh(port 22) is not passed test yet. So git clone git@.. not supported.

Example One:
Cannot push repository with ssh
docker run -d -p 12345:3000 -v $HOME/gogs_data:/data --name gogs whatwewant/docker-gogs

Example Two:
Support push repository with ssh
But, Please Change your VPS OR local sshd port: /etc/ssh/sshd_config or others first
docker run -d -p 12345:3000 -p 22:22 -v $HOME/gogs_data:/data --name gogs whatwewant/docker-gogs

Docker Pull Command
Owner
whatwewant

Comments (0)