/gitlab-install

GitLab Omnibus installation

Primary LanguageShell

GitLab deployment

GitLab Community Edition 11.0.0 is installed on host at 192.168.0.5 under gitlab_admin user.
GitLab docker installation is refered as omnibus installation.

GitLab volumes

  1. Configuration directory /srv/gitlab/config on host, mounted to /etc/gitlab inside the container.
    GitLab's configuration file gitlab.rb is available at the configuration folder.
  2. Logs directory /srv/gitlab/logs on host, mounted to /var/log/gitlab inside the container.
  3. Data directory /srv/gitlab/data on host, mounted to /var/opt/gitlab inside the container.
  4. In order to sync host time and container time, we will mount local timezone /usr/share/zoneinfo/Israel to /etc/localtime:ro inside the container.

Start GitLab

To start GitLab as a container named gitlab, run the following command:
docker-compose up

To get inside GitLab's running container, run the following command:
docker exec -it gitlab bash

GitLab will be available on gitlab.sq.l.

Portainer containers dashboard, will be available on 192.168.0.5:9000.

GitLab configuration

Configuration code, from official GitLab documentation.

To restart all GitLab services:
sudo gitlab-ctl restart

To check the status of GitLab services, run:
sudo gitlab-ctl status

Reconfigure Omnibus GitLab with:
sudo gitlab-ctl reconfigure