How to install local Gitlab CE on Ubuntu 20.04


Need to install Gitlab Community Edition locally on Ubuntu 20.04 and access repository through localhost:80

Gitlab installation:

  1. Update repos:
    sudo apt-get update
  2. Install required packages:
    sudo apt-get install -y curl openssh-server ca-certificates
  3. Download and install Gitlab community edition:
    curl -sS | sudo bash
  4. Set URL to access Gitlab:
    sudo EXTERNAL_URL=http://localhost:80/ apt-get install gitlab-ce
  5. To get temporary sign in password for root user:
    sudo cat /etc/gitlab/initial_root_password
  6. In UI set the administrative root password
  7. Login with root user and new password: login
  8. Set administrative account


  1. Install self-managed GitLab
  2. Gitlab installation requirements