Introduction
Installation
Generally speaking, the deployment of gitlab is very difficult since it depends on many compenents, e.g., database, http server, etc. However, there is corresponding docker image of gitlab, which are ready. Consequently, gitlab can be easily deployed via docker. The procedure can be summarized as follows.
pacman -S docker
systemctl enable docker
systemctl start docker
docker pull gitlab/gitlab-ce:latest
sudo docker run --detach --hostname localhost --net host --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