How to install Gitlab base on Docker:

  1. from docker:
    docker pull gitlab/gitlab-ce
  2. from Gitlab:
    sudo docker run --detach \
    --hostname gitlab.example.com \
    --publish 443:443 --publish 80:80 --publish 22:22 \
    --name gitlab \
    --restart always \
    --volume /srv/gitlab/config:/etc/gitlab \
    --volume /srv/gitlab/logs:/var/log/gitlab \
    --volume /srv/gitlab/data:/var/opt/gitlab \
    gitlab/gitlab-ce:latest
  3. please refer the details:
    https://hub.docker.com/r/gitlab/gitlab-ce/
    https://docs.gitlab.com/omnibus/docker/