{
  "manifest_version": "1.0.0",
  "template": {
    "id": "af6633eb-1486-4723-b6d0-a1a5e8d4d3c1",
    "slug": "railway-manage-1",
    "name": "Railway Manage",
    "description": "Internal disaster-recovery and operations control plane for projects.",
    "url": "https://railway.com/deploy/railway-manage-1",
    "upstream": {
      "repo_url": "https://github.com/0xdps/railway-manage"
    }
  },
  "services": [
    {
      "name": "railway-manage",
      "source": {
        "repo": "https://github.com/0xdps/railway-manage"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "ADMIN_KEY",
      "service": "railway-manage",
      "description": "Password used to log in to the Railway Manage dashboard",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RAILWAY_TOKEN",
      "service": "railway-manage",
      "description": "Railway API token with read/write access to your project (from railway.app → Account Settings → Tokens)",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SESSION_SECRET",
      "service": "railway-manage",
      "description": "Secret used to sign and verify JWT session tokens — use a long random string",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "railway-manage-1"
      }
    },
    "cli": "railway deploy --template railway-manage-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "af6633eb-1486-4723-b6d0-a1a5e8d4d3c1",
            "serializedConfig": {
              "services": {
                "140473e3-80af-4d2d-b9fb-4c1b39239446": {
                  "icon": "https://raw.githubusercontent.com/0xdps/railway-manage/refs/heads/trunk/services/frontend/public/favicon.svg",
                  "name": "railway-manage",
                  "deploy": {
                    "healthcheckPath": "/health"
                  },
                  "source": {
                    "repo": "0xdps/railway-manage",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "ADMIN_KEY": {
                      "isOptional": false,
                      "description": "Password used to log in to the Railway Manage dashboard",
                      "defaultValue": "{{ADMIN_KEY}}"
                    },
                    "RAILWAY_TOKEN": {
                      "isOptional": false,
                      "description": "Railway API token with read/write access to your project (from railway.app → Account Settings → Tokens)",
                      "defaultValue": "{{RAILWAY_TOKEN}}"
                    },
                    "SESSION_SECRET": {
                      "isOptional": false,
                      "description": "Secret used to sign and verify JWT session tokens — use a long random string",
                      "defaultValue": "{{SESSION_SECRET}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "140473e3-80af-4d2d-b9fb-4c1b39239446": {
                      "mountPath": "/app/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "railway-manage",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-18T08:53:08.067Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_b64ad98f74354b9ab74e",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "FAILED"
      }
    ]
  }
}
