Installing GitLab on Your Own Server (Part 1) – Installation

After a long time I will write some posts again. The first posts are independent of Java and the JVM but could be interesting to many Java developers also.

I decided to move my git repositories from GitHub to my own GitLab server. In this series of blog posts I will show how you can install your own GitLab instance and how you can configure it.

In this and the following posts I assume that you have Linux installed. Therefore all examples given are for Linux.

Installing GitLab is straight forward. Simply install as described. The only difference that I choose is that I do not set the environment variable with the host name. I set this later in the configuration.

After installation the configuration is continued by editing the file /etc/gitlab/gitlab.rb.

First I set the domain under which the GitLab installation will be accessible after installation. For this search for the key external_url in the configuration file and add the URL for your host, in this tutorial I will use https://git.example.net.

Next you should set up the email server. This could be helpful if you forget your password. Also informational emails from GitLab are sent with this account. For this the documentation for the configuration of GitLab contains some useful example configurations.

This is the basic installation and set up of your own GitLab server. If you want you can use this server already. The next parts of this series of posts are all optional.

In the next part I will set up a reverse proxy with NGINX for this GitLab instance.

Parts

References

6 thoughts on “Installing GitLab on Your Own Server (Part 1) – Installation

  1. Pingback: Installing GitLab on Your Own Server (Part 2) – Configure NGINX Reverse Proxy | Blog at sw4j.de

  2. Pingback: Installing GitLab on Your Own Server (Part 3) – Install gitlab-runner | Blog at sw4j.de

  3. Pingback: Installing GitLab on Your Own Server (Part 4) – Import GitHub Project | Blog at sw4j.de

  4. Pingback: Installing GitLab on Your Own Server (Part 5) – Configure Docker Registry | Blog at sw4j.de

  5. Pingback: Installing GitLab on Your Own Server (Part 6) – | Blog at sw4j.de

Leave a Reply

Your email address will not be published. Required fields are marked *