{
  "manifest_version": "1.0.0",
  "template": {
    "id": "63fa91c3-0baf-4802-a4c2-4a74271c815c",
    "slug": "cIsLIC",
    "name": "Cloudflared (local managed) + Prometheus",
    "description": "Cloudflare Tunnel Local Config Managed + Prometheus Metrics",
    "url": "https://railway.com/deploy/cIsLIC"
  },
  "services": [
    {
      "name": "railway-prometheus",
      "source": {
        "repo": "https://github.com/garretcharp/cloudflared-promethus"
      },
      "needs_volume": true,
      "volume_mount_path": "/prometheus",
      "http": false
    },
    {
      "name": "cloudflared-tunnel",
      "source": {
        "repo": "https://github.com/garretcharp/cloudflared-tunnel"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "railway-prometheus",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "9090"
    },
    {
      "key": "PORT",
      "service": "cloudflared-tunnel",
      "description": "The port for the metrics server (keep at 60123)",
      "secret": false,
      "strategy": "default",
      "default": "60123"
    },
    {
      "key": "TUNNEL_TOKEN",
      "service": "cloudflared-tunnel",
      "description": "[Read guide for how to get this value]. Authenticates the tunnel instance",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "cIsLIC"
      }
    },
    "cli": "railway deploy --template cIsLIC",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "63fa91c3-0baf-4802-a4c2-4a74271c815c",
            "serializedConfig": {
              "services": {
                "011071ac-31ca-4b37-85c8-b74572902d82": {
                  "name": "railway-prometheus",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "repo": "https://github.com/garretcharp/cloudflared-promethus",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "defaultValue": "9090"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "011071ac-31ca-4b37-85c8-b74572902d82": {
                      "mountPath": "/prometheus"
                    }
                  }
                },
                "d419e0f3-0c68-4b8c-bcc6-e7c004f6aaaf": {
                  "name": "cloudflared-tunnel",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "repo": "https://github.com/garretcharp/cloudflared-tunnel",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "The port for the metrics server (keep at 60123)",
                      "defaultValue": "60123"
                    },
                    "TUNNEL_TOKEN": {
                      "isOptional": false,
                      "description": "[Read guide for how to get this value]. Authenticates the tunnel instance",
                      "defaultValue": "{{TUNNEL_TOKEN}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {}
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-19T06:45:55.775Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_480e21930eda4db0a5f0",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "SUCCESS,CRASHED"
      }
    ]
  }
}
