{
  "manifest_version": "1.0.0",
  "template": {
    "id": "a1f42120-a0ee-43b6-b362-b6a6b4ade9bc",
    "slug": "gitlab-ce-or-just-updated-your-repos-sur",
    "name": "GitLab CE | (Just Updated) Your Repos Survive Redeploys, 4GB RAM Required",
    "description": "Needs 4GB RAM. Repos, database and uploads survive every redeploy.",
    "url": "https://railway.com/deploy/gitlab-ce-or-just-updated-your-repos-sur",
    "upstream": {
      "image": "gitlab/gitlab-ce@sha256:c7c87778c3380e4f93843f7329e3f2dc4aed1b90f29d05e56d8834ce50dccc54"
    }
  },
  "services": [
    {
      "name": "gitlab",
      "source": {
        "image": "gitlab/gitlab-ce@sha256:c7c87778c3380e4f93843f7329e3f2dc4aed1b90f29d05e56d8834ce50dccc54"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/opt/gitlab",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "GITLAB_DB_KEY_BASE",
      "service": "gitlab",
      "description": "Provide a value for GITLAB_DB_KEY_BASE.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "GITLAB_OTP_KEY_BASE",
      "service": "gitlab",
      "description": "Provide a value for GITLAB_OTP_KEY_BASE.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "GITLAB_ROOT_PASSWORD",
      "service": "gitlab",
      "description": "Provide a value for GITLAB_ROOT_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "GITLAB_OMNIBUS_CONFIG",
      "service": "gitlab",
      "description": "Provide a value for GITLAB_OMNIBUS_CONFIG.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "GITLAB_SECRET_KEY_BASE",
      "service": "gitlab",
      "description": "Provide a value for GITLAB_SECRET_KEY_BASE.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "gitlab-ce-or-just-updated-your-repos-sur"
      }
    },
    "cli": "railway deploy --template gitlab-ce-or-just-updated-your-repos-sur",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "a1f42120-a0ee-43b6-b362-b6a6b4ade9bc",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "31473ca0-695c-4e7b-8e6c-8112bb03e612": {
                  "icon": null,
                  "name": "gitlab",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "gitlab/gitlab-ce@sha256:c7c87778c3380e4f93843f7329e3f2dc4aed1b90f29d05e56d8834ce50dccc54"
                  },
                  "variables": {
                    "GITLAB_DB_KEY_BASE": {
                      "isOptional": false,
                      "defaultValue": "{{GITLAB_DB_KEY_BASE}}"
                    },
                    "GITLAB_OTP_KEY_BASE": {
                      "isOptional": false,
                      "defaultValue": "{{GITLAB_OTP_KEY_BASE}}"
                    },
                    "GITLAB_ROOT_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{GITLAB_ROOT_PASSWORD}}"
                    },
                    "GITLAB_OMNIBUS_CONFIG": {
                      "isOptional": false,
                      "defaultValue": "external_url 'https://${{RAILWAY_PUBLIC_DOMAIN}}'; nginx['listen_port']=8080; nginx['listen_https']=false; letsencrypt['enable']=false; puma['port']=8092; puma['worker_processes']=2; sidekiq['max_concurrency']=8; prometheus_monitoring['enable']=false; gitlab_rails['initial_root_password']=ENV['GITLAB_ROOT_PASSWORD']; gitlab_rails['db_key_base']=ENV['GITLAB_DB_KEY_BASE']; gitlab_rails['secret_key_base']=ENV['GITLAB_SECRET_KEY_BASE']; gitlab_rails['otp_key_base']=ENV['GITLAB_OTP_KEY_BASE']; gitlab_rails['gitlab_shell_ssh_port']=22;"
                    },
                    "GITLAB_SECRET_KEY_BASE": {
                      "isOptional": false,
                      "defaultValue": "{{GITLAB_SECRET_KEY_BASE}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "31473ca0-695c-4e7b-8e6c-8112bb03e612": {
                      "mountPath": "/var/opt/gitlab"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-11T10:14:37.526Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-10T15:16:50.826Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_5b292579c87a47b880d9",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 78,
    "typical_build_seconds": 0,
    "typical_start_seconds": 41,
    "slowest_service": "gitlab"
  }
}
