{
  "manifest_version": "1.0.0",
  "template": {
    "id": "f5d8ce8b-3809-4bb9-91ce-ad65780ae874",
    "slug": "nezha",
    "name": "Nezha",
    "description": "Self-hosted server & website monitoring dashboard; admin secured.",
    "url": "https://railway.com/deploy/nezha",
    "upstream": {
      "image": "ghcr.io/youssefsiam38/nezha-railway:1.0.0"
    }
  },
  "services": [
    {
      "name": "nezha",
      "source": {
        "image": "ghcr.io/youssefsiam38/nezha-railway:1.0.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/dashboard/data",
      "tcp_ports": [
        8008
      ],
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "nezha",
      "description": "Port Railway routes traffic and health checks to; keep it equal to the dashboard's listen port (8008).",
      "secret": false,
      "strategy": "default",
      "default": "8008"
    },
    {
      "key": "OWNER_PASSWORD",
      "service": "nezha",
      "description": "The admin's password, generated. It replaces the default admin/admin at start-up; copy it to sign in.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "OWNER_USERNAME",
      "service": "nezha",
      "description": "The admin username you sign in with.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "nezha",
      "description": "Give the first start room to initialise the database and secure the admin.",
      "secret": false,
      "strategy": "default",
      "default": "300"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "nezha"
      }
    },
    "cli": "railway deploy --template nezha",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "f5d8ce8b-3809-4bb9-91ce-ad65780ae874",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "cff0dfe2-8b28-4f1a-8e80-0a1966235e9c": {
                  "icon": null,
                  "name": "nezha",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/v1/setting",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/youssefsiam38/nezha-railway:1.0.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway routes traffic and health checks to; keep it equal to the dashboard's listen port (8008).",
                      "defaultValue": "8008"
                    },
                    "OWNER_PASSWORD": {
                      "isOptional": false,
                      "description": "The admin's password, generated. It replaces the default admin/admin at start-up; copy it to sign in.",
                      "defaultValue": "{{OWNER_PASSWORD}}"
                    },
                    "OWNER_USERNAME": {
                      "isOptional": false,
                      "description": "The admin username you sign in with.",
                      "defaultValue": "admin"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "Give the first start room to initialise the database and secure the admin.",
                      "defaultValue": "300"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "8008": {}
                    },
                    "serviceDomains": {
                      "<hasDomain>:8008": {
                        "port": 8008
                      }
                    }
                  },
                  "volumeMounts": {
                    "cff0dfe2-8b28-4f1a-8e80-0a1966235e9c": {
                      "mountPath": "/dashboard/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "nezha",
      "method": "GET",
      "path": "/api/v1/setting",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-17T10:14:36.166Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-17T10:28:19.467Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_9a82673f34704bc8945d",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 18,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "nezha"
  }
}
