{
  "manifest_version": "1.0.0",
  "template": {
    "id": "a2c1fe17-0831-42b0-b6b2-8c9a979f3e7a",
    "slug": "tank3-one-click-push-relay",
    "name": "tank3 one-click push relay",
    "description": "host your own push notification relay for your tank projects",
    "url": "https://railway.com/deploy/tank3-one-click-push-relay",
    "upstream": {
      "image": "ghcr.io/tankernauts/tank-relay:v0.2.0@sha256:6ed333ee0603a7b4bf0bd0692c86495f117c2a4e2302711154613a852c740f1d"
    }
  },
  "services": [
    {
      "name": "tank relay",
      "source": {
        "image": "ghcr.io/tankernauts/tank-relay:v0.2.0@sha256:6ed333ee0603a7b4bf0bd0692c86495f117c2a4e2302711154613a852c740f1d"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "TANK_RELAY_IMAGE_REF",
      "service": "tank relay",
      "description": "verify the deployed image matches this ref",
      "secret": false,
      "strategy": "default",
      "default": "ghcr.io/tankernauts/tank-relay:v0.2.0@sha256:6ed333ee0603a7b4bf0bd0692c86495f117c2a4e2302711154613a852c740f1d"
    },
    {
      "key": "TANK_RELAY_BOOTSTRAP_SECRET",
      "service": "tank relay",
      "description": "Paste the value from Tank's relay setup screen.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "tank relay",
      "description": "10 second healthcheck timeout",
      "secret": false,
      "strategy": "default",
      "default": "10"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_OVERLAP_SECONDS",
      "service": "tank relay",
      "description": "No overlapping deployments",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "tank relay",
      "description": "The SIGTERM to SIGKILL buffer time (in seconds)",
      "secret": false,
      "strategy": "default",
      "default": "15"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "tank3-one-click-push-relay"
      }
    },
    "cli": "railway deploy --template tank3-one-click-push-relay",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "a2c1fe17-0831-42b0-b6b2-8c9a979f3e7a",
            "serializedConfig": {
              "services": {
                "29ba0cc8-7ea3-41bc-b4c2-689ee3aa2219": {
                  "name": "tank relay",
                  "deploy": {
                    "healthcheckPath": "/readyz",
                    "restartPolicyMaxRetries": 3
                  },
                  "source": {
                    "image": "ghcr.io/tankernauts/tank-relay:v0.2.0@sha256:6ed333ee0603a7b4bf0bd0692c86495f117c2a4e2302711154613a852c740f1d"
                  },
                  "variables": {
                    "TANK_RELAY_IMAGE_REF": {
                      "isOptional": false,
                      "description": "verify the deployed image matches this ref",
                      "defaultValue": "ghcr.io/tankernauts/tank-relay:v0.2.0@sha256:6ed333ee0603a7b4bf0bd0692c86495f117c2a4e2302711154613a852c740f1d"
                    },
                    "TANK_RELAY_BOOTSTRAP_SECRET": {
                      "isOptional": false,
                      "description": "Paste the value from Tank's relay setup screen.",
                      "defaultValue": "{{TANK_RELAY_BOOTSTRAP_SECRET}}"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "10 second healthcheck timeout",
                      "defaultValue": "10"
                    },
                    "RAILWAY_DEPLOYMENT_OVERLAP_SECONDS": {
                      "isOptional": false,
                      "description": "No overlapping deployments",
                      "defaultValue": "0"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "The SIGTERM to SIGKILL buffer time (in seconds)",
                      "defaultValue": "15"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "tank relay",
      "method": "GET",
      "path": "/readyz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-10T17:17:10.176Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_ddabc820843d4044baf2",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "FAILED"
      }
    ]
  }
}
