Setup Gitlab on Docker

Docker

Setup

1
docker pull gitlab/gitlab-ce

Usage

1
2
3
4
5
6
7
8
9
docker run --detach \
--hostname gitlab.example.com \
--publish 10443:443 --publish 10080:80 --publish 22:22 \
--name gitlab \
--restart always \
--volume $HOME/.gitlab/config:/etc/gitlab \
--volume $HOME/.gitlab/logs:/var/log/gitlab \
--volume $HOME/.gitlab/data:/var/opt/gitlab \
gitlab/gitlab-ce:latest

Reference

https://docs.gitlab.com/omnibus/docker/README.html