GitLabQuickNotes - henk52/knowledgesharing GitHub Wiki
Gitlab
Introduction
Purpose
Installing gitlab
Installing a docker gitlab
- sudo mkdir -p /srv/gitlab
- sudo chown ${USERNAME}:${USERNAME} /srv/gitlab
- export GITLAB_HOME=/srv/gitlab
- 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