{
  "manifest_version": "1.0.0",
  "template": {
    "id": "09ef56e8-1d1c-41a7-83d4-f3e910e83e87",
    "slug": "krakend-gateway",
    "name": "KrakenD",
    "description": "KrakenD API gateway with a working private backend",
    "url": "https://railway.com/deploy/krakend-gateway",
    "upstream": {
      "repo_url": "https://github.com/monotykamary/railway-template-krakend"
    }
  },
  "services": [
    {
      "name": "gateway",
      "source": {
        "repo": "https://github.com/monotykamary/railway-template-krakend"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "echo",
      "source": {
        "repo": "https://github.com/monotykamary/railway-template-krakend"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "gateway",
      "description": "KrakenD HTTP port used by the Railway public domain.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "BACKEND_URL",
      "service": "gateway",
      "description": "Private example backend origin. Update the gateway config and references when replacing it.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PORT",
      "service": "echo",
      "description": "Private example backend HTTP port.",
      "secret": false,
      "strategy": "default",
      "default": "8081"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "krakend-gateway"
      }
    },
    "cli": "railway deploy --template krakend-gateway",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "09ef56e8-1d1c-41a7-83d4-f3e910e83e87",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "07731b0b-c440-49e2-be0c-5a0d8f8cd8b0": {
                  "icon": "https://raw.githubusercontent.com/monotykamary/railway-template-krakend/f74797375bce08f548f96190d670ecf7f98c9540/assets/krakend-icon.png",
                  "name": "gateway",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/__health",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/monotykamary/railway-template-krakend",
                    "rootDirectory": "/gateway"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "KrakenD HTTP port used by the Railway public domain.",
                      "defaultValue": "8080"
                    },
                    "BACKEND_URL": {
                      "isOptional": false,
                      "description": "Private example backend origin. Update the gateway config and references when replacing it.",
                      "defaultValue": "http://${{echo.RAILWAY_PRIVATE_DOMAIN}}:8081"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "c4554d07-3e3b-454b-b71b-98e82f17e34f": {
                  "icon": "https://raw.githubusercontent.com/monotykamary/railway-template-krakend/f74797375bce08f548f96190d670ecf7f98c9540/assets/krakend-icon.png",
                  "name": "echo",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/monotykamary/railway-template-krakend",
                    "rootDirectory": "/echo"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Private example backend HTTP port.",
                      "defaultValue": "8081"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "gateway",
      "method": "GET",
      "path": "/__health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": false
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-06T17:59:00.010Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_e44620d9a1f84d1f81df",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 72,
    "typical_build_seconds": 10,
    "typical_start_seconds": 10,
    "slowest_service": "gateway"
  }
}
