GitLab on Railway
Self-hosted Git, merge requests, issues and CI/CD from GitLab Community Edition, on Railway.
GitLab Community Edition is an open-source DevOps platform. It combines Git repository hosting, merge requests, issue tracking, wikis and CI/CD pipelines in one application, and it is a common self-hosted alternative to GitHub.
Teams run their own instance to keep source code on infrastructure they control, to run CI on their own runners, or to host private projects without per-seat hosting fees. GitLab also sells paid editions with extra features; the Community Edition is the free one.
GitLab CE is MIT-licensed, and the Omnibus packaging is Apache-2.0.
What GitLab can do
- Git hosting over HTTPS and SSH
- Merge requests and code review
- Issues, boards and wikis
- CI/CD pipelines with runners
- Container and package registries in the upstream product
What people use it for
- A private Git server for a team or company
- Running CI/CD on your own runner
- Issue tracking next to the code
- Mirroring or migrating repositories from another host
Videos
Running GitLab on Railway
The Railway template deploys the official GitLab CE Omnibus image as one service with bundled PostgreSQL, Redis, Gitaly and nginx, plus a volume at /var/opt/gitlab. Git over SSH goes through a Railway TCP proxy, and a GitLab Runner service with the shell executor registers itself. The template notes measured about 3.9 GB of idle RAM for GitLab and 23 MB for the runner, so memory is the main cost driver.
GitLab templates on Railway
Tracklayer templates are listed first. Other GitLab templates follow, ordered by total deployments on Railway. How this works.
Deployment numbers as of 2026-11-20.
Questions about GitLab
How do I log in?
Wait until GitLab is healthy, which takes several minutes on first boot. Sign in as root with GITLAB_ROOT_PASSWORD from the service variables and change it. New sign-ups need admin approval by default; turn sign-up off for a private instance.
Can CI jobs use Docker images?
Not on the bundled runner. It uses the shell executor, so the image keyword is ignored. Use it for trusted projects or register an external Docker runner.
How much memory does it need?
The template notes say GitLab needs about 4 GB, and the defaults fit 4 to 8 GB. Memory is the main cost on Railway.
How do I back it up?
Use Railway volume backups, or run gitlab-backup create and copy the result off the volume together with /etc/gitlab/gitlab-secrets.json, which gitlab-backup does not include.
Does email work?
GitLab sends mail over SMTP only, which Railway allows on the Pro plan. Set the SMTP variables and GITLAB_EMAIL_FROM.
Guides
Similar apps
Tracklayer maintains the templates marked as such; GitLab is a trademark of its owners and this site is not affiliated with them.