Sign inSign up

arkadi/gogs

By arkadi

•Updated almost 11 years ago

Gogs - a self-hosted Git service written in Go.

Image
2

582

arkadi/gogs repository overview

⁠Gogs⁠ Docker image

This image is based on phusion/baseimage⁠ so it has proper boot sequence and process supervision.

phusion/baseimage is Ubuntu 14.04 LTS based image with runit⁠ init, cron, syslog-ng, and sshd⁠.

Usage:

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 -l is optional to enter container with shell at startup.

Source respository on GitHub⁠.

Tag summary

Content type

Image

Digest

sha256:931cc87a3…

Size

113.7 MB

Last updated

almost 11 years ago

docker pull arkadi/gogs