{
  "manifest_version": "1.0.0",
  "template": {
    "id": "0ddf0360-0c28-4baf-8749-9621d73e41a9",
    "slug": "gitlab-ce-railway",
    "name": "GitLab",
    "description": "GitHub alternative. DevSecOps platform that provides a complete SDLC.",
    "url": "https://railway.com/deploy/gitlab-ce-railway",
    "upstream": {
      "image": "gitlab/gitlab-ce:19.2.1-ce.0"
    }
  },
  "services": [
    {
      "name": "gitlab",
      "source": {
        "image": "gitlab/gitlab-ce:19.2.1-ce.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/opt/gitlab",
      "tcp_ports": [
        22
      ],
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "gitlab",
      "description": "nginx listen port inside the container",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "gitlab",
      "description": "Provide a value for RAILWAY_RUN_UID.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "GITLAB_ROOT_PASSWORD",
      "service": "gitlab",
      "description": "Initial root admin password, first boot only",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "GITLAB_OMNIBUS_CONFIG",
      "service": "gitlab",
      "description": "Provide a value for GITLAB_OMNIBUS_CONFIG.",
      "secret": false,
      "strategy": "default",
      "default": "external_url \"https://#{ENV['RAILWAY_PUBLIC_DOMAIN']}\"\nnginx['listen_port'] = 80\nnginx['listen_https'] = false\nnginx['worker_processes'] = 2\nnginx['custom_nginx_config'] = 'map $http_x_forwarded_for $real_client_ip { \"~^\\s*(?P<first>[^,\\s]+)\" $first; default $remote_addr; }'\nnginx['proxy_set_headers'] = { 'Host' => '$http_host_with_default', 'X-Real-IP' => '$real_client_ip', 'X-Forwarded-For' => '$real_client_ip', 'X-Forwarded-Proto' => 'https', 'X-Forwarded-Ssl' => 'on', 'Upgrade' => '$http_upgrade', 'Connection' => '$connection_upgrade' }\nletsencrypt['enable'] = false\ngitlab_rails['trusted_proxies'] = ['100.64.0.0/10', 'fd00::/8']\nif ENV['RAILWAY_TCP_PROXY_DOMAIN'].to_s != ''\n  gitlab_rails['gitlab_ssh_host'] = ENV['RAILWAY_TCP_PROXY_DOMAIN']\n  gitlab_rails['gitlab_shell_ssh_port'] = ENV['RAILWAY_TCP_PROXY_PORT'].to_i\nend\ngitlab_rails['gitlab_email_enabled'] = false\ngitlab_rails['smtp_enable'] = false\ngitlab_rails['initial_root_password'] = ENV['GITLAB_ROOT_PASSWORD']\npuma['worker_processes'] = 3\npuma['min_threads'] = 4\npuma['max_threads'] = 4\npuma['per_worker_max_memory_mb'] = 1100\nsidekiq['concurrency'] = 10\npostgresql['dynamic_shared_memory_type'] = 'mmap'\nprometheus_monitoring['enable'] = false\ngitlab_kas['enable'] = false\nregistry['enable'] = false\ngitlab_pages['enable'] = false\n"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "gitlab-ce-railway"
      }
    },
    "cli": "railway deploy --template gitlab-ce-railway",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "0ddf0360-0c28-4baf-8749-9621d73e41a9",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "5e613c28-1f14-40e3-91bd-6c0bc5ca5b3e": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/gitlab.svg",
                  "name": "gitlab",
                  "deploy": {
                    "startCommand": "/bin/bash -c 'set -e; mkdir -p /var/opt/gitlab/_config; if [ ! -L /etc/gitlab ]; then if [ -d /etc/gitlab ]; then cp -an /etc/gitlab/. /var/opt/gitlab/_config/ 2>/dev/null || true; fi; rm -rf /etc/gitlab; ln -sfn /var/opt/gitlab/_config /etc/gitlab; fi; echo \"railway-boot: /etc/gitlab -> $(readlink -f /etc/gitlab)\"; exec /assets/init-container'",
                    "healthcheckPath": "/explore",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 3
                  },
                  "source": {
                    "image": "gitlab/gitlab-ce:19.2.1-ce.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "nginx listen port inside the container",
                      "defaultValue": "80"
                    },
                    "RAILWAY_RUN_UID": {
                      "defaultValue": "0"
                    },
                    "GITLAB_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Initial root admin password, first boot only",
                      "defaultValue": "{{GITLAB_ROOT_PASSWORD}}"
                    },
                    "GITLAB_OMNIBUS_CONFIG": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "external_url \"https://#{ENV['RAILWAY_PUBLIC_DOMAIN']}\"\nnginx['listen_port'] = 80\nnginx['listen_https'] = false\nnginx['worker_processes'] = 2\nnginx['custom_nginx_config'] = 'map $http_x_forwarded_for $real_client_ip { \"~^\\s*(?P<first>[^,\\s]+)\" $first; default $remote_addr; }'\nnginx['proxy_set_headers'] = { 'Host' => '$http_host_with_default', 'X-Real-IP' => '$real_client_ip', 'X-Forwarded-For' => '$real_client_ip', 'X-Forwarded-Proto' => 'https', 'X-Forwarded-Ssl' => 'on', 'Upgrade' => '$http_upgrade', 'Connection' => '$connection_upgrade' }\nletsencrypt['enable'] = false\ngitlab_rails['trusted_proxies'] = ['100.64.0.0/10', 'fd00::/8']\nif ENV['RAILWAY_TCP_PROXY_DOMAIN'].to_s != ''\n  gitlab_rails['gitlab_ssh_host'] = ENV['RAILWAY_TCP_PROXY_DOMAIN']\n  gitlab_rails['gitlab_shell_ssh_port'] = ENV['RAILWAY_TCP_PROXY_PORT'].to_i\nend\ngitlab_rails['gitlab_email_enabled'] = false\ngitlab_rails['smtp_enable'] = false\ngitlab_rails['initial_root_password'] = ENV['GITLAB_ROOT_PASSWORD']\npuma['worker_processes'] = 3\npuma['min_threads'] = 4\npuma['max_threads'] = 4\npuma['per_worker_max_memory_mb'] = 1100\nsidekiq['concurrency'] = 10\npostgresql['dynamic_shared_memory_type'] = 'mmap'\nprometheus_monitoring['enable'] = false\ngitlab_kas['enable'] = false\nregistry['enable'] = false\ngitlab_pages['enable'] = false\n"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "22": {}
                    },
                    "serviceDomains": {
                      "<hasDomain>:80": {
                        "port": 80
                      }
                    }
                  },
                  "volumeMounts": {
                    "5e613c28-1f14-40e3-91bd-6c0bc5ca5b3e": {
                      "mountPath": "/var/opt/gitlab"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "gitlab",
      "method": "GET",
      "path": "/explore",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T20:38:50.256Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_3bed66b21f1e498a9e5c",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 241,
    "typical_build_seconds": 0,
    "typical_start_seconds": 184,
    "slowest_service": "gitlab"
  }
}
