Levelrail
Skip to content

Self-host GitLab with Docker ​

GitLab Community Edition: Git hosting, CI/CD, issues, and a container registry in one Omnibus image.

This page describes the Levelrail template for GitLab (Developer Tools). It deploys the services below as one Docker Compose app on your own server.

Project site: https://docs.gitlab.com/ee/install/docker.html.

Recommended memory: about 4096 MiB.

Services, ports and volumes ​

ServiceImageContainer portsVolumes
gitlabgitlab/gitlab-ce:17.5.2-ce.080, 22
gitlab_config -> /etc/gitlab
gitlab_logs -> /var/log/gitlab
gitlab_data -> /var/opt/gitlab

Environment variables ​

ServiceVariableValue
gitlabGITLAB_OMNIBUS_CONFIGPreset in the template
gitlabGITLAB_ROOT_PASSWORDGenerated at deploy

Passwords and keys marked as generated are created for you when the app is deployed and stored as secrets. Values are not shown here.

Deploy GitLab with Levelrail ​

In the dashboard, open Apps, choose New app, then Browse templates, and select GitLab. Review the Compose body and deploy.

With the CLI:

levelrail-cli templates deploy gitlab --name my-gitlab

See Service template catalog for how templates work, and Getting started if you have not installed Levelrail yet.

More Developer Tools templates ​

All templates are listed in the self-host gallery.

Released under the Apache 2.0 License.