Why install GitLab on your VPS?
GitLab is an open source application that offers a graphical user interface (GUI) to help manage Git repositories. It includes lots of features, such as issue tracking and easy pull requests and merges.
If you don't want to pay for GitHub’s or Bitbucket’s paid features, or if you want to maintain full control over your codebase, then a self-hosted GitLab installation is a great option.
Today, we'll walk you through how to install GitLab on your VPS running Ubuntu, Debian or CentOs.
Prerequisites for GitLab installation:
- A VPS running Ubuntu 16.04/18.04, Debian 8/9/10, or CentOS 7
- A regular (non-root) account with sudo privileges. See our SSH keys tutorial for more information.
- A VPS that meets the hardware requirements. Any 8GB or larger VPS from SSD Nodes should to the trick.
Step 1: Installing dependencies
To get ready to install GitLab on your VPS, you need to install some dependencies.
Luckily, they’re available in default repositories:
Ubuntu 16.04/18.04, Debian 8/9/10
$ sudo apt install curl openssh-server ca-certificates postfix
Centos 7
$ sudo yum install curl policycoreutils openssh-server openssh-clients
$
by subscribing to our newsletter.
A note about tutorials: We encourage our users to try out tutorials, but they aren't fully supported by our team—we can't always provide support when things go wrong. Be sure to check which OS and version it was tested with before you proceed.
If you want a fully managed experience, with dedicated support for any application you might want to run, contact us for more information.