{
  "manifest_version": "1.0.0",
  "template": {
    "id": "45375ede-4bbe-44c6-8aba-42848d40b04c",
    "slug": "gitlab",
    "name": "GitLab | Open Source GitHub Alternative on Railway",
    "description": "Self-host GitLab CE. Built-in CI/CD (DevOps), Git repos, and issue tracking",
    "url": "https://railway.com/deploy/gitlab",
    "upstream": {
      "image": "gitlab/gitlab-ce:latest"
    }
  },
  "services": [
    {
      "name": "GitLab",
      "source": {
        "image": "gitlab/gitlab-ce:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/opt/gitlab",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "GitLab",
      "description": "HTTP listening port",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "GitLab",
      "description": "Run as root for volume permissions",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "GITLAB_ROOT_PASSWORD",
      "service": "GitLab",
      "description": "Create root password. Note: default username to login is 'root'",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "GITLAB_OMNIBUS_CONFIG",
      "service": "GitLab",
      "description": "Omnibus configuration block",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "gitlab"
      }
    },
    "cli": "railway deploy --template gitlab",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "45375ede-4bbe-44c6-8aba-42848d40b04c",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "865a22ef-2953-4f94-bff3-6bed6d2dc3a8": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/gitlab.svg",
                  "name": "GitLab",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "gitlab/gitlab-ce:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP listening port",
                      "defaultValue": "80"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Run as root for volume permissions",
                      "defaultValue": "0"
                    },
                    "GITLAB_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Create root password. Note: default username to login is 'root'",
                      "defaultValue": "{{GITLAB_ROOT_PASSWORD}}"
                    },
                    "GITLAB_OMNIBUS_CONFIG": {
                      "isOptional": false,
                      "description": "Omnibus configuration block",
                      "defaultValue": "{{GITLAB_OMNIBUS_CONFIG}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "865a22ef-2953-4f94-bff3-6bed6d2dc3a8": {
                      "mountPath": "/var/opt/gitlab"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-12T04:14:32.537Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-11T12:19:39.132Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_fc234d7c5fe945efbcfd",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 94,
    "typical_build_seconds": 0,
    "typical_start_seconds": 28,
    "slowest_service": "GitLab"
  }
}
