This project creates full-stack platform-specific downloadable packages for GitLab.
Go to file
GitLab Release Tools Bot 1978a62d69 Merge remote-tracking branch 'dev/master' 2023-09-28 17:59:07 +00:00
.gitlab Update the codeowners files 2023-09-25 05:37:12 +00:00
config Merge branch 'security-mattermost-sep-1-patches' into 'master' 2023-09-25 21:19:06 +00:00
danger Update handbook link to merge request process 2023-02-15 17:13:35 +00:00
doc Add Let's Encrypt rate limits to troubleshooting section 2023-09-26 18:01:27 +00:00
docker Require upgrade stop at 16.3 2023-09-15 05:12:48 +00:00
files Automatic merge of gitlab-org/omnibus-gitlab master 2023-09-27 04:05:29 +00:00
gitlab-ci-config Merge branch 'switch-from-ruby-docker-image' into 'master' 2023-09-18 23:11:37 +00:00
letsencrypt-test Add CI job to validate Let's Encrypt behavior against test ACME endpoint 2021-05-18 15:32:29 +00:00
lib Merge branch 'stop-syncing-packages-to-s3' into 'master' 2023-09-07 06:21:02 +00:00
resources/rpm Fix package signing for newer rpm versions 2019-07-05 09:54:43 +05:30
scripts Use gitlab-dangerfiles gem 2022-08-16 22:45:11 +00:00
spec Merge branch 'security-consul-rce' into 'master' 2023-09-25 13:24:29 +00:00
support Remove old code used for AMI builds 2023-08-04 16:18:30 +00:00
test-plans Remove libre2 from build 2023-09-11 20:02:31 -07:00
.custom_sources.yml Remove libre2 from build 2023-09-11 20:02:31 -07:00
.gitattributes Update merge strategy for 2018-03-26 11:27:04 +01:00
.gitignore Generate packer manifests and store them as artifacts 2022-11-30 01:03:10 +00:00
.gitlab-ci.yml Merge branch 'update-get-geo-tag' into 'master' 2023-09-20 11:11:09 +00:00
.markdownlint.yml Refresh Vale and Markdownlint rules 2023-06-06 12:37:02 +10:00
.projections.json.example Restructure chef rspecs to match code structure 2022-03-24 04:38:17 +00:00
.rspec Unify the Rspec options into a single pattern 2022-06-03 07:42:02 +00:00
.rubocop.yml Enable Style/GlobalVars cop through all files in RuboCop 2022-09-21 08:31:58 +00:00
.rubocop_todo.yml Drop Grafana and related code from the package 2023-08-01 20:48:58 +00:00
.ruby-version Update Ruby to 2.7.7 and 3.0.5 2022-12-09 18:49:37 +00:00
.tool-versions Add Vale to .tool-versions file 2023-07-28 10:44:40 +10:00
.vale.ini Add Vale checks to project 2020-03-18 06:38:21 +00:00
.yardopts Add yard to generate Ruby code documentation 2021-08-24 04:44:29 +00:00
Berksfile Initial commit 2013-11-21 13:06:42 +02:00 Update changelog for 16.2.8 2023-09-28 08:30:27 +00:00 Fix broken links on CONTRIBUTING doc 2022-12-07 09:42:43 +00:00
Dangerfile Use gitlab-dangerfiles gem 2022-08-16 22:45:11 +00:00
GITALY_SERVER_VERSION Reset Gitaly server version back to master 2019-05-03 04:47:51 -07:00
GITLAB_KAS_VERSION Switch GITLAB_KAS_VERSION to master 2021-01-11 23:09:41 +00:00
GITLAB_PAGES_VERSION Move all VERSION files back to master 2019-05-03 05:08:42 -07:00
GITLAB_SHELL_VERSION Use the 'main' branch for gitlab-shell nightlies 2020-11-26 13:36:42 +00:00
GITLAB_WORKHORSE_VERSION Move all VERSION files back to master 2019-05-03 05:08:42 -07:00
Gemfile Update tomlib to v0.6.0 to correctly escape special characters 2023-06-12 08:54:37 +00:00
Gemfile.lock Bump Omnibus version to 2023-06-16 22:14:00 +00:00
LICENSE Change docs license to CC BY-SA 4.0 2018-05-04 13:19:15 +02:00
OMNIBUS_GEM_VERSION Bump Omnibus version to 2023-06-16 22:14:00 +00:00 Correct URL anchors for `Change the name of the Git user or group` 2023-01-07 21:19:30 +01:00
Rakefile Speed up rubocop CI job 2018-03-11 10:11:23 +09:00
VERSION Reset VERSION to say master 2019-04-21 11:30:31 +05:30
deps.yml ExifTool - Infinite loop when parsing BigTIFF files 2023-09-25 13:22:38 +00:00
omnibus.rb Bump omnibus to 2022-02-04 15:39:29 +00:00
omnibus.rb.example Initial commit 2013-11-21 13:06:42 +02:00

Omnibus GitLab


This project creates full-stack platform-specific downloadable packages for GitLab. For other installation options please see the GitLab installation page.

Canonical source

The source of omnibus-gitlab is hosted on and there are mirrors to make contributing as easy as possible.


The documentation overview is in the readme in the doc directory.

Omnibus fork

Omnibus GitLab is using a fork of omnibus project. For additional information see the comments in the Gemfile.

We left the links below in the readme to preserve old links, but please use the readme in the doc directory to browse the complete documentation.


Please see the contribution guidelines


Please follow the steps on the downloads page.

After installation

Your GitLab instance should be reachable over HTTP at the IP or hostname of your server. You can login as an admin user with username root and password 5iveL!fe.

See doc/maintenance/ for useful commands to control/debug your GitLab instance.

Configuration options

See doc/settings/

Configuring the external URL for GitLab

See doc/settings/

Storing Git data in an alternative directory

See doc/settings/

Changing the name of the Git user / group

See doc/settings/

Setting up LDAP sign-in

See doc/settings/

Enable HTTPS

See doc/settings/

Redirect HTTP requests to HTTPS

See doc/settings/

Change the default port and the ssl certificate locations

See doc/settings/

Use non-packaged web-server

For using an existing Nginx, Passenger, or Apache webserver see doc/settings/

Using a non-packaged PostgreSQL database management server

To connect to an external PostgreSQL DBMS see doc/settings/

Using a non-packaged Redis instance

See doc/settings/

Adding ENV Vars to the Gitlab Runtime Environment

See doc/settings/

Changing gitlab.yml settings

See doc/settings/

Specify numeric user and group identifiers

See doc/settings/

Sending application email via SMTP

See doc/settings/

Omniauth (Google, Twitter, GitHub login)

Omniauth configuration is documented in

Adjusting Unicorn settings

See doc/settings/

Setting the NGINX listen address or addresses

See doc/settings/

Inserting custom NGINX settings into the GitLab server block

See doc/settings/

Inserting custom settings into the NGINX config

See doc/settings/

Only start omnibus-gitlab services after a given filesystem is mounted

See doc/settings/


Instructions for updating your Omnibus installation and upgrading from a manual installation are in the update doc.

Uninstalling Omnibus GitLab

See doc/installation/

Common installation problems

This section has been moved to the separate document doc/common_installation_problems/

Section below remains for historical reasons(mainly to not break existing links). Each section contains the link to the new location.

Apt error 'The requested URL returned error: 403'

See doc/common_installation_problems/

GitLab is unreachable in my browser

See doc/common_installation_problems/

Emails are not being delivered

See doc/common_installation_problems/

Reconfigure freezes at ruby_block[supervise_redis_sleep] action run

See doc/common_installation_problems/

TCP ports for GitLab services are already taken

See doc/common_installation_problems/

Git SSH access stops working on SELinux-enabled systems

See doc/common_installation_problems/

Postgres error 'FATAL: could not create shared memory segment: Cannot allocate memory'

See doc/common_installation_problems/

Reconfigure complains about the GLIBC version

See doc/common_installation_problems/

Reconfigure fails to create the git user

See doc/common_installation_problems/

Failed to modify kernel parameters with sysctl

See doc/common_installation_problems/

I am unable to install omnibus-gitlab without root access

See doc/common_installation_problems/

gitlab-rake assets:precompile fails with 'Permission denied'

See doc/common_installation_problems/

'Short read or OOM loading DB' error

See doc/common_installation_problems/


See doc/settings/

Backup and restore omnibus-gitlab configuration

See doc/settings/

Creating an application backup

See doc/settings/

Restoring an application backup

See backup restore documentation.

Backup and restore using non-packaged database

If you are using non-packaged database see documentation on using non-packaged database.

Upload backups to remote (cloud) storage

For details check backup restore document of GitLab CE.

Invoking Rake tasks

See doc/maintenance/

Directory structure

Omnibus-gitlab uses four different directories.

  • /opt/gitlab holds application code for GitLab and its dependencies.
  • /var/opt/gitlab holds application data and configuration files that gitlab-ctl reconfigure writes to.
  • /etc/gitlab holds configuration files for omnibus-gitlab. These are the only files that you should ever have to edit manually.
  • /var/log/gitlab contains all log data generated by components of omnibus-gitlab.

Omnibus-gitlab and SELinux

Although omnibus-gitlab runs on systems that have SELinux enabled, it does not use SELinux confinement features:

  • omnibus-gitlab creates unconfined system users;
  • omnibus-gitlab services run in an unconfined context.

The correct operation of Git access via SSH depends on the labeling of /var/opt/gitlab/.ssh. If needed you can restore this labeling by running sudo gitlab-ctl reconfigure.

Depending on your platform, gitlab-ctl reconfigure will install SELinux modules required to make GitLab work. These modules are listed in files/gitlab-selinux/

NSA, if you're reading this, we'd really appreciate it if you could contribute back a SELinux profile for omnibus-gitlab :) Of course, if anyone else is reading this, you're welcome to contribute the SELinux profile too.


This section has been moved to separate document doc/settings/

Tail logs in a console on the server

See doc/settings/

Runit logs

See doc/settings/


See doc/settings/

UDP log shipping (GitLab Enterprise Edition only)

See doc/settings/

Create a user and database for GitLab

See doc/settings/

Configure omnibus-gitlab to connect to it

See doc/settings/

Seed the database (fresh installs only)

See doc/settings/

Building your own package

See the separate build documentation.

Running a custom GitLab version

It is not recommended to make changes to any of the files in /opt/gitlab after installing omnibus-gitlab: they will either conflict with or be overwritten by future updates. If you want to run a custom version of GitLab you can build your own package or use another installation method.


This omnibus installer project is based on the awesome work done by Chef in omnibus-chef-server.