How to Setup and Configure Your Own GitLab Server on Ubuntu 20.04

I have created a video tutorial. You can watch that for your reference.

Youtube Tutorial
  1. 2 CPU cores.
  2. (optional) Domain or subdomain pointing to the server IP address.

Installation

Login to your Ubuntu 20.04 / 18.04 system and run the following commands in the terminal to install GitLab dependencies.

sudo apt update
sudo apt-get install -y curl openssh-server ca-certificates
sudo apt-get install -y postfix

Installing GitLab CE

curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
sudo apt-get install gitlab-ce
sudo EXTERNAL_URL="http://gitlabce.example.com" apt-get install gitlab-ce
sudo gitlab-ctl reconfiguregitlab-ctl start

Access GitLab through the Web Interface

Open your web browser and type the URL that you mentioned while installing or check your local IP address and enter in the browser you will get GitLab web interface.

https://your_gitlab_domain_or_server_IP
sudo apt-get remove gitlab-ce

sudo rm -rf /var/opt/gitlab
sudo pkill -f gitlab
sudo rm -rf /opt/gitlab

sudo rm -rf /etc/gitlab

sudo rm -rf /var/opt/gitlab

{ ML Engineer 💻 }

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store