{
  "manifest_version": "1.0.0",
  "template": {
    "id": "374f4edb-18b6-4ed2-b38c-9a6b7151272f",
    "slug": "apisix-1",
    "name": "APISIX",
    "description": "Apache APISIX API gateway with admin dashboard and etcd config store",
    "url": "https://railway.com/deploy/apisix-1",
    "upstream": {
      "repo_url": "https://github.com/INAPP-Mobile/railway-apisix"
    }
  },
  "services": [
    {
      "name": "apisix",
      "source": {
        "repo": "https://github.com/INAPP-Mobile/railway-apisix"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "etcd",
      "source": {
        "repo": "https://github.com/INAPP-Mobile/railway-apisix"
      },
      "needs_volume": true,
      "volume_mount_path": "/bitnami/etcd",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "apisix",
      "description": "Port APISIX listens on.",
      "secret": false,
      "strategy": "default",
      "default": "9080"
    },
    {
      "key": "ETCD_HOST",
      "service": "apisix",
      "description": "etcd sibling service private hostname. Resolved from the etcd service at deploy time.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "APISIX_ADMIN_KEY",
      "service": "apisix",
      "description": "Admin API key for the APISIX admin API and dashboard. Auto-generated on first deploy.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ETCD_ADVERTISE_CLIENT_URLS",
      "service": "etcd",
      "description": "Client URL APISIX connects to. Resolved from this service's own private domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "apisix-1"
      }
    },
    "cli": "railway deploy --template apisix-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "374f4edb-18b6-4ed2-b38c-9a6b7151272f",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "5035f775-c0cf-48db-891e-3812411f2511": {
                  "icon": null,
                  "name": "apisix",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/INAPP-Mobile/railway-apisix",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port APISIX listens on.",
                      "defaultValue": "9080"
                    },
                    "ETCD_HOST": {
                      "isOptional": false,
                      "description": "etcd sibling service private hostname. Resolved from the etcd service at deploy time.",
                      "defaultValue": "${{etcd.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "APISIX_ADMIN_KEY": {
                      "isOptional": false,
                      "description": "Admin API key for the APISIX admin API and dashboard. Auto-generated on first deploy.",
                      "defaultValue": "{{APISIX_ADMIN_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "d7bf45f7-590e-49b0-8069-dcb323014833": {
                  "icon": null,
                  "name": "etcd",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/INAPP-Mobile/railway-apisix",
                    "rootDirectory": "etcd"
                  },
                  "variables": {
                    "ETCD_ADVERTISE_CLIENT_URLS": {
                      "isOptional": false,
                      "description": "Client URL APISIX connects to. Resolved from this service's own private domain.",
                      "defaultValue": "http://${{RAILWAY_PRIVATE_DOMAIN}}:2379"
                    }
                  },
                  "volumeMounts": {
                    "d7bf45f7-590e-49b0-8069-dcb323014833": {
                      "mountPath": "/bitnami/etcd"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "apisix",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-18T16:14:44.724Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-17T03:42:26.496Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_abd40494b19d45b5b776",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 121,
    "typical_build_seconds": 15,
    "typical_start_seconds": 13,
    "slowest_service": "apisix"
  }
}
