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.


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 | sudo bash
sudo apt-get install gitlab-ce
sudo EXTERNAL_URL="" 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.

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