First Look: Enterprise Edition on Docker

First Look: Enterprise Edition via Containers
Introduction
A recent project required a self-hosted Git platform, so I researched how to set it up. The client was on an older version, so I had to work with that initially — but the workflow is essentially the same across versions; only the UI differs.
The following guide uses the latest version, since I also wanted to try it out.
Platform Overview
It is a Git-based version control repository management system that provides web-based Git operations along with additional features such as Issues, Wiki, and CI/CD.
It is largely similar to Azure DevOps, but open-source and self-hostable. Companies that prefer not to use Azure DevOps may find this a viable alternative.
Installation
- The OS covered here is Ubuntu 22.04 LTS. For other operating systems, refer to the official documentation You will need
OpenSSH ServerandDockerinstalled. If you use the official Ubuntu ISO, these options are available during installation; otherwise, install them manually.- Why not
Docker for Windows? The official documentation states it is not supported and has known issues, soUbuntu Serverwas chosen instead.
Step One: Set Up Ubuntu Server (minimized)
-
Download the latest
Ubuntu Server (minimized)ISO from Ubuntu -
Create a VM with HyperV and install
Ubuntu Server (minimized)
Step Two: Reassign the Default Secure-Shell Listen Address
The platform uses port 22 for SSH and Git operations, so you need to change the default SSH port from 22 to something else.
- Install
VIM, or use the defaultviornano
|
|
- Edit
/etc/ssh/sshd_configto change the default port
|
|
|
|
- Restart OpenSSH Server
|
|
- Log out and log back in
|
|
or
|
|
To SSH in as
root, edit/etc/ssh/sshd_config
1 2#PermitRootLogin prohibit-password <--預設就是被註解的 PermitRootLogin yes #新增一行,並把註解拿掉
Step Three: Run Containers and Install the Platform
- Set the
GITLAB_HOMEdirectory. When running asroot, you must placeGITLAB_HOMEunder/root
|
|
- Run the Enterprise Edition container
Why install
Enterprise Edition? Without a purchased license it functions identically toCommunity Edition. If you need to upgrade later, just purchase a license — no reinstallation required.
- Install using Docker Engine
|
|
You can run
sudo docker logs -f gitlabto view the logs
- Install using Docker Compose
- Check whether
Docker Composeis installed
|
|
After installation, this password is only valid for 24 hours. Be sure to log in and change the password within that window.
- This feature is available in version 14.0 and later
- Older versions prompt you to set a new password when logging in as
root
- Installation complete. Open a browser and enter the IP address or your domain to access the platform
- If you need
HTTPS, refer to the official documentation on Nginx settings- Will Huang also provides a simple self-signed certificate setup guide (in Chinese): Quick Start: Enterprise Edition on Docker with Ubuntu 22.04 LTS
The next post will cover additional configuration and how to set up CI/CD.