Gogs - a self-hosted Git service written in Go.
Gogs Docker image
This image is based on phusion/baseimage so it has proper boot sequence and process supervision.
docker run -ti --rm \ -p 50022:22 \ -p 50443:50443 \ -v /var/git:/home/git \ -e DOMAIN=git.domain.com \ -e SSH_PORT=50022 \ -e HTTPS_PORT=50443 \ arkadi/gogs \ /sbin/my_init -- bash -l
- UI will be on port 50443 (HTTPS). Use HTTP_PORT for HTTP.
- The data: Git repositories, HTTPS and SSH keys, Gogs config, etc. will be under /var/git.
- DOMAIN is required for proper Gogs and HTTPS certificate configuration.
- SSH_PORT and HTTP(S)_PORT are optional, but will default to 50022 and 50443 (HTTPS) respectively. Those variables also configure links presented by Gogs as part of its UI and in email text.
/sbin/my_init -- bash -lis optional to enter container with shell at startup.
Source respository on GitHub.
Docker Pull Command