{
  "manifest_version": "1.0.0",
  "template": {
    "id": "8927aaa1-2472-4dfc-b33c-9f3f9431962b",
    "slug": "red-discord-bot-reliable-community-templ",
    "name": "Red Discord Bot — Reliable Community Template",
    "description": "Pinned Red 3.5.24 with supervised readiness and persistent bot data.",
    "url": "https://railway.com/deploy/red-discord-bot-reliable-community-templ",
    "upstream": {
      "repo_url": "https://github.com/hryhory-sinenka/railway-reliability-templates"
    }
  },
  "services": [
    {
      "name": "redbot",
      "source": {
        "repo": "https://github.com/hryhory-sinenka/railway-reliability-templates"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "DISCORD_TOKEN",
      "service": "redbot",
      "description": "Required Discord bot token from the Discord developer portal.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DISCORD_PREFIX",
      "service": "redbot",
      "description": "Command prefix used by the bot.",
      "secret": false,
      "strategy": "default",
      "default": "!"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "red-discord-bot-reliable-community-templ"
      }
    },
    "cli": "railway deploy --template red-discord-bot-reliable-community-templ",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "8927aaa1-2472-4dfc-b33c-9f3f9431962b",
            "serializedConfig": {
              "services": {
                "69ab6534-9096-4ea5-8ff2-c34b9895f844": {
                  "name": "redbot",
                  "deploy": {
                    "healthcheckPath": "/readyz"
                  },
                  "source": {
                    "repo": "hryhory-sinenka/railway-reliability-templates",
                    "branch": null,
                    "rootDirectory": "/redbot"
                  },
                  "variables": {
                    "DISCORD_TOKEN": {
                      "isOptional": false,
                      "description": "Required Discord bot token from the Discord developer portal.",
                      "defaultValue": "{{DISCORD_TOKEN}}"
                    },
                    "DISCORD_PREFIX": {
                      "isOptional": false,
                      "description": "Command prefix used by the bot.",
                      "defaultValue": "!"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "69ab6534-9096-4ea5-8ff2-c34b9895f844": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "redbot",
      "method": "GET",
      "path": "/readyz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-19T22:14:40.433Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-19T19:19:29.541Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_e5931ddf0e414ad99543",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "FAILED"
      }
    ]
  }
}
