Why GitLab?
To be honest, I have no idea why, it's just fun to do.
Another option that I had found was Gitea, but I didn't choose that because GitLab is more advanced.
Making your OS ready for installation
In this tutorial, i will use Ubuntu Server 22.04, so some things here may not be compatible with your chosen distro and/or version. If you use a non-debian based distro, please refer to about.gitlab.com/install for installation instructions.
After freshly installing Ubuntu Server, install some packages by executing
$ sudo apt-get update
$ sudo apt-get install -y curl openssh-server ca-certificates tzdata perl
Now, execute this to setup the repository
$ curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash
Installing GitLab
Set up your DNS settings accordingly.
Execute this and change the external URL to the one that you're going to use
Make sure the DNS is resolvable to your IP address!
$ sudo EXTERNAL_URL="https://gitlab.example.com" apt-get install gitlab-ee
Do NOT change the ee in gitlab-ee to ce. If you install gitlab-ee it will work as gitlab-ce.
That was it! Just browse to the URL you just set, and you're ready to configure!