Deploy GitLab CE

Self-hosted GitLab CE on Railway; needs at least 4 GB RAM

Deploy GitLab CE

Just deployed

GitLab CE

Resources: GitLab CE needs at least 4 GB RAM (8 GB recommended) and 2 vCPU. The first boot (reconfigure + migrations) can take 10-20 minutes before the healthcheck passes.

Template Header

Deploy a self-hosted GitLab CE instance on Railway.

Deploy on Railway

Files in this template

  • Dockerfile uses the official gitlab/gitlab-ce image.
  • docker-entrypoint.sh injects Railway domain and dynamic $PORT.
  • railway.toml configures health checks and restart policy.

Environment variables

GITLAB_ROOT_PASSWORD=replace-with-strong-password

RAILWAY_PUBLIC_DOMAIN and PORT are provided by Railway.

First login

  • Username: root
  • Password: value from GITLAB_ROOT_PASSWORD

Persistent storage

Attach a Railway volume and mount these paths:

  • /var/opt/gitlab
  • /etc/gitlab
  • /var/log/gitlab

Notes

  • GitLab needs significant RAM and CPU. Use a larger Railway plan for production.
  • First boot can take several minutes.
  • Keep at least one persistent volume attached before storing projects.

Airbyte Apache Airflow CodiMD Email Service GitLab CE Grafana Home Assistant InfluxDB Mosquitto MQTT Node-RED OpenSearch TYPO3 CMS


Template Content

More templates in this category

View Template
Rocky Linux
Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀

codestorm
51
View Template
Foundry Virtual Tabletop
Self-hosted virtual tabletop for role-playing games (license required)

Lucas
71
View Template
NEW
Double Commander in your browser
The Double Commander file manager in the cloud, from any device

Nermin Sabanovic
0