{
  "manifest_version": "1.0.0",
  "template": {
    "id": "a8a153db-39c4-4d42-b57b-a59d7d4a0512",
    "slug": "gitlab-ce-19-devops-platform",
    "name": "GitLab CE 19 DevOps Platform",
    "description": "Self-hosted Git, merge requests, issues and wiki. Own your code.",
    "url": "https://railway.com/deploy/gitlab-ce-19-devops-platform",
    "upstream": {
      "repo_url": "https://github.com/baranberkay96/gitlab-railway"
    }
  },
  "services": [
    {
      "name": "GitLab",
      "source": {
        "repo": "https://github.com/baranberkay96/gitlab-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/opt/gitlab",
      "tcp_ports": [
        22
      ],
      "http": true
    },
    {
      "name": "GitLab Runner",
      "source": {
        "repo": "https://github.com/baranberkay96/gitlab-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/etc/gitlab-runner",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "GitLab",
      "description": "Port GitLab's bundled nginx listens on; Railway routes the public domain and its healthcheck here.",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "SMTP_PORT",
      "service": "GitLab",
      "description": "SMTP port (587 STARTTLS, 465 implicit TLS).",
      "secret": false,
      "strategy": "default",
      "default": "587"
    },
    {
      "key": "GITLAB_HOST",
      "service": "GitLab",
      "description": "Host name in GitLab's external URL (https://...). Change it to your custom domain after adding one, then redeploy.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "GITLAB_KAS_ENABLED",
      "service": "GitLab",
      "description": "Run the GitLab agent server for Kubernetes (KAS), served under /-/kubernetes-agent/ on the same domain.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "GITLAB_PUMA_THREADS",
      "service": "GitLab",
      "description": "Threads per Puma worker.",
      "secret": false,
      "strategy": "default",
      "default": "4"
    },
    {
      "key": "GITLAB_PUMA_WORKERS",
      "service": "GitLab",
      "description": "Puma web worker processes (~600-900 MB each). 0 = single process for very small instances.",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "GITLAB_ROOT_PASSWORD",
      "service": "GitLab",
      "description": "Password of the 'root' administrator, applied once when the database is created. Change it in GitLab afterwards.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "GITLAB_PROMETHEUS_ENABLED",
      "service": "GitLab",
      "description": "Run the bundled Prometheus, Alertmanager and exporters (about 300 MB extra).",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "GITLAB_SIDEKIQ_CONCURRENCY",
      "service": "GitLab",
      "description": "Sidekiq background job threads (GitLab default 20).",
      "secret": false,
      "strategy": "default",
      "default": "10"
    },
    {
      "key": "GITLAB_RUNNER_BOOTSTRAP_TOKEN",
      "service": "GitLab",
      "description": "One-time token (create_runner scope only, 30-day expiry) that GitLab creates for root so the GitLab Runner service can register itself. The runner revokes it after use. Clear it to disable automatic runner registration.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "GITLAB_POSTGRES_SHARED_BUFFERS",
      "service": "GitLab",
      "description": "shared_buffers of the bundled PostgreSQL. Raise it with the service's memory.",
      "secret": false,
      "strategy": "default",
      "default": "256MB"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "GitLab",
      "description": "Time for 'gitlab-ctl stop' to shut down PostgreSQL and the other components cleanly on redeploy.",
      "secret": false,
      "strategy": "default",
      "default": "120"
    },
    {
      "key": "GITLAB_RUNNER_TAGS",
      "service": "GitLab Runner",
      "description": "Tags of the automatically created runner (comma separated).",
      "secret": false,
      "strategy": "default",
      "default": "railway,shell"
    },
    {
      "key": "GITLAB_INTERNAL_URL",
      "service": "GitLab Runner",
      "description": "GitLab URL on the private network; used for the API, job traffic and git clones.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "GITLAB_RUNNER_CONCURRENT",
      "service": "GitLab Runner",
      "description": "Jobs this runner executes at the same time.",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "GITLAB_RUNNER_DESCRIPTION",
      "service": "GitLab Runner",
      "description": "Description of the automatically created runner in GitLab.",
      "secret": false,
      "strategy": "default",
      "default": "Railway shell runner"
    },
    {
      "key": "GITLAB_RUNNER_RUN_UNTAGGED",
      "service": "GitLab Runner",
      "description": "Let the automatically created runner pick up jobs without tags.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "GITLAB_RUNNER_BOOTSTRAP_TOKEN",
      "service": "GitLab Runner",
      "description": "Token used once to create and register an instance runner automatically, then revoked.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "GitLab Runner",
      "description": "Grace period on redeploy.",
      "secret": false,
      "strategy": "default",
      "default": "30"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "gitlab-ce-19-devops-platform"
      }
    },
    "cli": "railway deploy --template gitlab-ce-19-devops-platform",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "a8a153db-39c4-4d42-b57b-a59d7d4a0512",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "b7c12d7e-c67f-595f-8b97-85a9119244fb": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/gitlab.svg",
                  "name": "GitLab",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "healthcheckPath": "/users/sign_in",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 1800,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "baranberkay96/gitlab-railway",
                    "branch": "main",
                    "rootDirectory": "/services/gitlab"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Port GitLab's bundled nginx listens on; Railway routes the public domain and its healthcheck here.",
                      "defaultValue": "80"
                    },
                    "SMTP_PORT": {
                      "isOptional": true,
                      "description": "SMTP port (587 STARTTLS, 465 implicit TLS).",
                      "defaultValue": "587"
                    },
                    "SMTP_USER": {
                      "isOptional": true,
                      "description": "SMTP user name.",
                      "defaultValue": ""
                    },
                    "GITLAB_HOST": {
                      "isOptional": true,
                      "description": "Host name in GitLab's external URL (https://...). Change it to your custom domain after adding one, then redeploy.",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SMTP_ADDRESS": {
                      "isOptional": true,
                      "description": "Optional SMTP server for e-mail (notifications, password resets). Leave empty to disable e-mail. Outbound SMTP needs Railway Pro.",
                      "defaultValue": ""
                    },
                    "SMTP_PASSWORD": {
                      "isOptional": true,
                      "description": "SMTP password.",
                      "defaultValue": ""
                    },
                    "GITLAB_EMAIL_FROM": {
                      "isOptional": true,
                      "description": "Sender address for GitLab e-mails, e.g. gitlab@{your-domain}.",
                      "defaultValue": ""
                    },
                    "GITLAB_KAS_ENABLED": {
                      "isOptional": true,
                      "description": "Run the GitLab agent server for Kubernetes (KAS), served under /-/kubernetes-agent/ on the same domain.",
                      "defaultValue": "false"
                    },
                    "GITLAB_PUMA_THREADS": {
                      "isOptional": true,
                      "description": "Threads per Puma worker.",
                      "defaultValue": "4"
                    },
                    "GITLAB_PUMA_WORKERS": {
                      "isOptional": true,
                      "description": "Puma web worker processes (~600-900 MB each). 0 = single process for very small instances.",
                      "defaultValue": "2"
                    },
                    "GITLAB_ROOT_PASSWORD": {
                      "isOptional": true,
                      "description": "Password of the 'root' administrator, applied once when the database is created. Change it in GitLab afterwards.",
                      "defaultValue": "{{GITLAB_ROOT_PASSWORD}}"
                    },
                    "GITLAB_OMNIBUS_CONFIG": {
                      "isOptional": true,
                      "description": "Optional extra gitlab.rb Ruby lines, applied after the template's settings (e.g. registry or OmniAuth configuration).",
                      "defaultValue": ""
                    },
                    "GITLAB_PROMETHEUS_ENABLED": {
                      "isOptional": true,
                      "description": "Run the bundled Prometheus, Alertmanager and exporters (about 300 MB extra).",
                      "defaultValue": "false"
                    },
                    "GITLAB_SIDEKIQ_CONCURRENCY": {
                      "isOptional": true,
                      "description": "Sidekiq background job threads (GitLab default 20).",
                      "defaultValue": "10"
                    },
                    "GITLAB_RUNNER_BOOTSTRAP_TOKEN": {
                      "isOptional": true,
                      "description": "One-time token (create_runner scope only, 30-day expiry) that GitLab creates for root so the GitLab Runner service can register itself. The runner revokes it after use. Clear it to disable automatic runner registration.",
                      "defaultValue": "{{GITLAB_RUNNER_BOOTSTRAP_TOKEN}}"
                    },
                    "GITLAB_POSTGRES_SHARED_BUFFERS": {
                      "isOptional": true,
                      "description": "shared_buffers of the bundled PostgreSQL. Raise it with the service's memory.",
                      "defaultValue": "256MB"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Time for 'gitlab-ctl stop' to shut down PostgreSQL and the other components cleanly on redeploy.",
                      "defaultValue": "120"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "22": {}
                    },
                    "serviceDomains": {
                      "<hasDomain>:80": {
                        "port": 80
                      }
                    }
                  },
                  "volumeMounts": {
                    "22091ea4-f59f-5e77-a169-fc148e0ae475": {
                      "mountPath": "/var/opt/gitlab"
                    }
                  }
                },
                "cfcca900-6283-51a6-8b00-034ac0fb8ed3": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/gitlab.svg",
                  "name": "GitLab Runner",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "restartPolicyType": "ALWAYS"
                  },
                  "source": {
                    "repo": "baranberkay96/gitlab-railway",
                    "branch": "main",
                    "rootDirectory": "/services/gitlab-runner"
                  },
                  "variables": {
                    "GITLAB_RUNNER_TAGS": {
                      "isOptional": true,
                      "description": "Tags of the automatically created runner (comma separated).",
                      "defaultValue": "railway,shell"
                    },
                    "GITLAB_INTERNAL_URL": {
                      "isOptional": true,
                      "description": "GitLab URL on the private network; used for the API, job traffic and git clones.",
                      "defaultValue": "http://${{GitLab.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "GITLAB_RUNNER_TOKEN": {
                      "isOptional": true,
                      "description": "Optional runner authentication token (glrt-...) from Admin > CI/CD > Runners > New instance runner. Takes precedence over the bootstrap token.",
                      "defaultValue": ""
                    },
                    "GITLAB_RUNNER_CONCURRENT": {
                      "isOptional": true,
                      "description": "Jobs this runner executes at the same time.",
                      "defaultValue": "2"
                    },
                    "GITLAB_RUNNER_DESCRIPTION": {
                      "isOptional": true,
                      "description": "Description of the automatically created runner in GitLab.",
                      "defaultValue": "Railway shell runner"
                    },
                    "GITLAB_RUNNER_RUN_UNTAGGED": {
                      "isOptional": true,
                      "description": "Let the automatically created runner pick up jobs without tags.",
                      "defaultValue": "true"
                    },
                    "GITLAB_RUNNER_BOOTSTRAP_TOKEN": {
                      "isOptional": true,
                      "description": "Token used once to create and register an instance runner automatically, then revoked.",
                      "defaultValue": "${{GitLab.GITLAB_RUNNER_BOOTSTRAP_TOKEN}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Grace period on redeploy.",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "1aca3b19-d69d-5711-850d-c84b3cc1c50c": {
                      "mountPath": "/etc/gitlab-runner"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "GitLab",
      "method": "GET",
      "path": "/users/sign_in",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-10-11T22:14:38.939Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-11T19:02:08.138Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_77fde3edd7b34e199f9c",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 464,
    "typical_build_seconds": 112,
    "typical_start_seconds": 10,
    "slowest_service": "GitLab Runner"
  }
}
