{
  "manifest_version": "1.0.0",
  "template": {
    "id": "7978b293-01f9-43f7-a69a-8b748a06c469",
    "slug": "okc9Wi",
    "name": "NSQ",
    "description": "Realtime distributed messaging platform.",
    "url": "https://railway.com/deploy/okc9Wi",
    "upstream": {
      "repo_url": "https://github.com/railwayapp-templates/nsq"
    }
  },
  "services": [
    {
      "name": "Nsqlookupd",
      "source": {
        "repo": "https://github.com/railwayapp-templates/nsq"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Nsqadmin",
      "source": {
        "repo": "https://github.com/railwayapp-templates/nsq"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Nsqd",
      "source": {
        "repo": "https://github.com/railwayapp-templates/nsq"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Nsqlookupd",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "4161"
    },
    {
      "key": "PORT",
      "service": "Nsqadmin",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "4171"
    },
    {
      "key": "RAILWAY_NSQLOOKUPD",
      "service": "Nsqadmin",
      "description": "External URL for Nsqlookup",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PORT",
      "service": "Nsqd",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "4151"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "okc9Wi"
      }
    },
    "cli": "railway deploy --template okc9Wi",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "7978b293-01f9-43f7-a69a-8b748a06c469",
            "serializedConfig": {
              "services": {
                "1a10585a-23e8-4892-b813-c8094e14099b": {
                  "name": "Nsqlookupd",
                  "build": {},
                  "deploy": {},
                  "source": {
                    "repo": "https://github.com/railwayapp-templates/nsq",
                    "rootDirectory": "/nsqlookupd"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "defaultValue": "4161"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {}
                },
                "792242c2-8200-4cb2-8e4d-951ee2ade801": {
                  "name": "Nsqadmin",
                  "build": {},
                  "deploy": {},
                  "source": {
                    "repo": "https://github.com/railwayapp-templates/nsq",
                    "rootDirectory": "/nsqadmin"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "defaultValue": "4171"
                    },
                    "RAILWAY_NSQLOOKUPD": {
                      "isOptional": true,
                      "description": "External URL for Nsqlookup",
                      "defaultValue": "${{RAILWAY_SERVICE_NSQLOOKUPD_URL}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {}
                },
                "c915c479-2f35-4980-a104-7347b50c6b81": {
                  "name": "Nsqd",
                  "build": {},
                  "deploy": {},
                  "source": {
                    "repo": "https://github.com/railwayapp-templates/nsq",
                    "rootDirectory": "/nsqd"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "4151"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {}
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 3,
    "needs_volume": false
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-21T16:58:26.963Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_72435a23927647ebac0e",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 73,
    "typical_build_seconds": 11,
    "typical_start_seconds": 10,
    "slowest_service": "Nsqd"
  }
}
