GitLabQuickNotes - henk52/knowledgesharing GitHub Wiki

Gitlab

Introduction

Purpose

Installing gitlab

Installing a docker gitlab

gitlab docker

  1. sudo mkdir -p /srv/gitlab
  2. sudo chown ${USERNAME}:${USERNAME} /srv/gitlab
  3. export GITLAB_HOME=/srv/gitlab
  4. sudo docker run --detach
    --hostname gitlab.example.com
    --publish 443:443 --publish 80:80 --publish 22:22
    --name gitlab
    --restart always
    --volume $GITLAB_HOME/config:/etc/gitlab
    --volume $GITLAB_HOME/logs:/var/log/gitlab
    --volume $GITLAB_HOME/data:/var/opt/gitlab
    gitlab/gitlab-ce:latest

root password at: /etc/gitlab/initial_root_password