{
  "manifest_version": "1.0.0",
  "template": {
    "id": "943574ea-a791-40ae-a865-7f8be3f51d53",
    "slug": "rustdesk-server",
    "name": "RustDesk Server",
    "description": "RustDesk Server OSS self-hosted: hbbs (ID server) + hbbr (relay).",
    "url": "https://railway.com/deploy/rustdesk-server"
  },
  "services": [
    {
      "name": "hbbs",
      "source": {
        "repo": "https://github.com/BURNI80/rustdesk-railway-template"
      },
      "needs_volume": true,
      "volume_mount_path": "/root",
      "tcp_ports": [
        21116
      ],
      "http": false
    },
    {
      "name": "hbbr",
      "source": {
        "repo": "https://github.com/BURNI80/rustdesk-railway-template"
      },
      "needs_volume": false,
      "tcp_ports": [
        21117
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "RELAY_ADDR",
      "service": "hbbs",
      "description": "RELAY_ADDR",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "rustdesk-server"
      }
    },
    "cli": "railway deploy --template rustdesk-server",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "943574ea-a791-40ae-a865-7f8be3f51d53",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "5f7987c7-0db5-4947-900c-cd9eee8ff624": {
                  "icon": null,
                  "name": "hbbs",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/BURNI80/rustdesk-railway-template",
                    "rootDirectory": null
                  },
                  "variables": {
                    "RELAY_ADDR": {
                      "isOptional": false,
                      "description": "RELAY_ADDR",
                      "defaultValue": "${{hbbr.RAILWAY_TCP_PROXY_DOMAIN}}:${{hbbr.RAILWAY_TCP_PROXY_PORT}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "21116": {}
                    }
                  },
                  "volumeMounts": {
                    "5f7987c7-0db5-4947-900c-cd9eee8ff624": {
                      "mountPath": "/root"
                    }
                  }
                },
                "bc3564cd-b96d-4030-8f60-160036eff7f8": {
                  "icon": null,
                  "name": "hbbr",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/BURNI80/rustdesk-railway-template",
                    "rootDirectory": null
                  },
                  "variables": {},
                  "networking": {
                    "tcpProxies": {
                      "21117": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T15:30:12.505Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_68aefd92cb7b4b85888c",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 85,
    "typical_build_seconds": 21,
    "typical_start_seconds": 10,
    "slowest_service": "hbbs"
  }
}
