{
  "manifest_version": "1.0.0",
  "template": {
    "id": "9c8c8366-b7a5-473b-80a1-99430d66678f",
    "slug": "element",
    "name": "Element Web",
    "description": "Web client for Matrix, an encrypted and federated chat network",
    "url": "https://railway.com/deploy/element",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/element-railway"
    }
  },
  "services": [
    {
      "name": "element-web",
      "source": {
        "repo": "https://github.com/gridalpha/element-railway"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "element-web",
      "description": "Port Railway routes and probes",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "ELEMENT_WEB_PORT",
      "service": "element-web",
      "description": "Port nginx binds in the container",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "element"
      }
    },
    "cli": "railway deploy --template element",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "9c8c8366-b7a5-473b-80a1-99430d66678f",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "d7ca1a0c-b126-4b5a-8ce9-b0ad467cc2cb": {
                  "icon": "https://cdn.simpleicons.org/element/0DBD8B.svg",
                  "name": "element-web",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/version",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/element-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway routes and probes",
                      "defaultValue": "8080"
                    },
                    "ELEMENT_BRAND": {
                      "isOptional": true,
                      "description": "UI app name; blank keeps Element",
                      "defaultValue": ""
                    },
                    "ELEMENT_WEB_PORT": {
                      "isOptional": false,
                      "description": "Port nginx binds in the container",
                      "defaultValue": "8080"
                    },
                    "MATRIX_SERVER_NAME": {
                      "isOptional": true,
                      "description": "Server name; blank derives it from the URL",
                      "defaultValue": ""
                    },
                    "MATRIX_HOMESERVER_URL": {
                      "isOptional": true,
                      "description": "Homeserver base URL; blank uses matrix.org",
                      "defaultValue": ""
                    },
                    "ELEMENT_DISABLE_CUSTOM_URLS": {
                      "isOptional": true,
                      "description": "true removes the homeserver picker",
                      "defaultValue": ""
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "element-web",
      "method": "GET",
      "path": "/version",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-10-06T04:14:42.626Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-05T08:05:19.148Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_5731fea6fc7c4876b695",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 70,
    "typical_build_seconds": 35,
    "typical_start_seconds": 10,
    "slowest_service": "element-web"
  }
}
