{
  "manifest_version": "1.0.0",
  "template": {
    "id": "8abd569f-a106-4013-8a09-0e2decb1a0d2",
    "slug": "redpanda-kafka",
    "name": "Redpanda",
    "description": "Streaming data platform for publishing and consuming event topics",
    "url": "https://railway.com/deploy/redpanda-kafka",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/redpanda-railway"
    }
  },
  "services": [
    {
      "name": "redpanda",
      "source": {
        "repo": "https://github.com/gridalpha/redpanda-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/redpanda/data",
      "tcp_ports": [
        19092
      ],
      "http": false
    },
    {
      "name": "gateway",
      "source": {
        "repo": "https://github.com/gridalpha/redpanda-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "console",
      "source": {
        "repo": "https://github.com/gridalpha/redpanda-railway"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "redpanda",
      "description": "Admin API port, also health-checked",
      "secret": false,
      "strategy": "default",
      "default": "9644"
    },
    {
      "key": "REDPANDA_ADMIN_USER",
      "service": "redpanda",
      "description": "SASL/SCRAM superuser username",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "REDPANDA_ADMIN_PASSWORD",
      "service": "redpanda",
      "description": "Superuser password, no colons",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REDPANDA_SASL_MECHANISM",
      "service": "redpanda",
      "description": "SCRAM-SHA-256 or SCRAM-SHA-512",
      "secret": false,
      "strategy": "default",
      "default": "SCRAM-SHA-256"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "redpanda",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "PORT",
      "service": "gateway",
      "description": "HTTP server listening port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "CONSOLE_PORT",
      "service": "gateway",
      "description": "Console upstream port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "GATEWAY_USER",
      "service": "gateway",
      "description": "Console basic auth username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CONSOLE_UPSTREAM",
      "service": "gateway",
      "description": "Private Console hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "GATEWAY_PASSWORD",
      "service": "gateway",
      "description": "Console basic auth password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDPANDA_UPSTREAM",
      "service": "gateway",
      "description": "Private broker hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDPANDA_HTTP_PROXY_PORT",
      "service": "gateway",
      "description": "Kafka HTTP Proxy upstream port",
      "secret": false,
      "strategy": "default",
      "default": "8082"
    },
    {
      "key": "REDPANDA_SCHEMA_REGISTRY_PORT",
      "service": "gateway",
      "description": "Schema Registry upstream port",
      "secret": false,
      "strategy": "default",
      "default": "8081"
    },
    {
      "key": "PORT",
      "service": "console",
      "description": "HTTP server listening port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "KAFKA_BROKERS",
      "service": "console",
      "description": "Kafka bootstrap address",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RP_BROKER_HOST",
      "service": "console",
      "description": "Private broker hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "SERVER_LISTENPORT",
      "service": "console",
      "description": "Console listen port, matches PORT",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "KAFKA_SASL_ENABLED",
      "service": "console",
      "description": "Authenticate to the Kafka API",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "KAFKA_SASL_PASSWORD",
      "service": "console",
      "description": "Kafka SASL password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "KAFKA_SASL_USERNAME",
      "service": "console",
      "description": "Kafka SASL username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SCHEMAREGISTRY_URLS",
      "service": "console",
      "description": "Schema Registry address",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "KAFKA_SASL_MECHANISM",
      "service": "console",
      "description": "SCRAM mechanism",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDPANDA_ADMINAPI_URLS",
      "service": "console",
      "description": "Admin API address",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "SCHEMAREGISTRY_ENABLED",
      "service": "console",
      "description": "Enable the Schema Registry tab",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "REDPANDA_ADMINAPI_ENABLED",
      "service": "console",
      "description": "Enable Admin API features",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "SCHEMAREGISTRY_AUTHENTICATION_BASIC_PASSWORD",
      "service": "console",
      "description": "Registry basic auth password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SCHEMAREGISTRY_AUTHENTICATION_BASIC_USERNAME",
      "service": "console",
      "description": "Registry basic auth user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDPANDA_ADMINAPI_AUTHENTICATION_BASIC_PASSWORD",
      "service": "console",
      "description": "Admin API basic auth password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDPANDA_ADMINAPI_AUTHENTICATION_BASIC_USERNAME",
      "service": "console",
      "description": "Admin API basic auth user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "redpanda-kafka"
      }
    },
    "cli": "railway deploy --template redpanda-kafka",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "8abd569f-a106-4013-8a09-0e2decb1a0d2",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "3256b7f8-b1a4-411f-8ce1-60a71273626f": {
                  "icon": "https://raw.githubusercontent.com/redpanda-data/console/master/frontend/public/favicon.svg",
                  "name": "redpanda",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/v1/status/ready",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/redpanda-railway",
                    "rootDirectory": "broker"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Admin API port, also health-checked",
                      "defaultValue": "9644"
                    },
                    "REDPANDA_ADMIN_USER": {
                      "isOptional": false,
                      "description": "SASL/SCRAM superuser username",
                      "defaultValue": "admin"
                    },
                    "REDPANDA_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password, no colons",
                      "defaultValue": "{{REDPANDA_ADMIN_PASSWORD}}"
                    },
                    "REDPANDA_SASL_MECHANISM": {
                      "isOptional": false,
                      "description": "SCRAM-SHA-256 or SCRAM-SHA-512",
                      "defaultValue": "SCRAM-SHA-256"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "19092": {}
                    }
                  },
                  "volumeMounts": {
                    "3256b7f8-b1a4-411f-8ce1-60a71273626f": {
                      "mountPath": "/var/lib/redpanda/data"
                    }
                  }
                },
                "4f1bd20d-aa5f-46e4-a025-905ed10f9366": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/caddy.svg",
                  "name": "gateway",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/redpanda-railway",
                    "rootDirectory": "gateway"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP server listening port",
                      "defaultValue": "8080"
                    },
                    "CONSOLE_PORT": {
                      "isOptional": false,
                      "description": "Console upstream port",
                      "defaultValue": "8080"
                    },
                    "GATEWAY_USER": {
                      "isOptional": false,
                      "description": "Console basic auth username",
                      "defaultValue": "${{redpanda.REDPANDA_ADMIN_USER}}"
                    },
                    "CONSOLE_UPSTREAM": {
                      "isOptional": false,
                      "description": "Private Console hostname",
                      "defaultValue": "${{console.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "GATEWAY_PASSWORD": {
                      "isOptional": false,
                      "description": "Console basic auth password",
                      "defaultValue": "${{redpanda.REDPANDA_ADMIN_PASSWORD}}"
                    },
                    "REDPANDA_UPSTREAM": {
                      "isOptional": false,
                      "description": "Private broker hostname",
                      "defaultValue": "${{redpanda.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDPANDA_HTTP_PROXY_PORT": {
                      "isOptional": false,
                      "description": "Kafka HTTP Proxy upstream port",
                      "defaultValue": "8082"
                    },
                    "REDPANDA_SCHEMA_REGISTRY_PORT": {
                      "isOptional": false,
                      "description": "Schema Registry upstream port",
                      "defaultValue": "8081"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "f438ca4a-410d-4868-9349-81621ebf607a": {
                  "icon": "https://raw.githubusercontent.com/redpanda-data/console/master/frontend/public/apple-touch-icon.png",
                  "name": "console",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/admin/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/redpanda-railway",
                    "rootDirectory": "console"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP server listening port",
                      "defaultValue": "8080"
                    },
                    "KAFKA_BROKERS": {
                      "isOptional": false,
                      "description": "Kafka bootstrap address",
                      "defaultValue": "${{redpanda.RAILWAY_PRIVATE_DOMAIN}}:9092"
                    },
                    "RP_BROKER_HOST": {
                      "isOptional": false,
                      "description": "Private broker hostname",
                      "defaultValue": "${{redpanda.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "SERVER_LISTENPORT": {
                      "isOptional": false,
                      "description": "Console listen port, matches PORT",
                      "defaultValue": "8080"
                    },
                    "KAFKA_SASL_ENABLED": {
                      "isOptional": false,
                      "description": "Authenticate to the Kafka API",
                      "defaultValue": "true"
                    },
                    "KAFKA_SASL_PASSWORD": {
                      "isOptional": false,
                      "description": "Kafka SASL password",
                      "defaultValue": "${{redpanda.REDPANDA_ADMIN_PASSWORD}}"
                    },
                    "KAFKA_SASL_USERNAME": {
                      "isOptional": false,
                      "description": "Kafka SASL username",
                      "defaultValue": "${{redpanda.REDPANDA_ADMIN_USER}}"
                    },
                    "SCHEMAREGISTRY_URLS": {
                      "isOptional": false,
                      "description": "Schema Registry address",
                      "defaultValue": "http://${{redpanda.RAILWAY_PRIVATE_DOMAIN}}:8081"
                    },
                    "KAFKA_SASL_MECHANISM": {
                      "isOptional": false,
                      "description": "SCRAM mechanism",
                      "defaultValue": "${{redpanda.REDPANDA_SASL_MECHANISM}}"
                    },
                    "REDPANDA_ADMINAPI_URLS": {
                      "isOptional": false,
                      "description": "Admin API address",
                      "defaultValue": "http://${{redpanda.RAILWAY_PRIVATE_DOMAIN}}:9644"
                    },
                    "SCHEMAREGISTRY_ENABLED": {
                      "isOptional": false,
                      "description": "Enable the Schema Registry tab",
                      "defaultValue": "true"
                    },
                    "REDPANDA_ADMINAPI_ENABLED": {
                      "isOptional": false,
                      "description": "Enable Admin API features",
                      "defaultValue": "true"
                    },
                    "SCHEMAREGISTRY_AUTHENTICATION_BASIC_PASSWORD": {
                      "isOptional": false,
                      "description": "Registry basic auth password",
                      "defaultValue": "${{redpanda.REDPANDA_ADMIN_PASSWORD}}"
                    },
                    "SCHEMAREGISTRY_AUTHENTICATION_BASIC_USERNAME": {
                      "isOptional": false,
                      "description": "Registry basic auth user",
                      "defaultValue": "${{redpanda.REDPANDA_ADMIN_USER}}"
                    },
                    "REDPANDA_ADMINAPI_AUTHENTICATION_BASIC_PASSWORD": {
                      "isOptional": false,
                      "description": "Admin API basic auth password",
                      "defaultValue": "${{redpanda.REDPANDA_ADMIN_PASSWORD}}"
                    },
                    "REDPANDA_ADMINAPI_AUTHENTICATION_BASIC_USERNAME": {
                      "isOptional": false,
                      "description": "Admin API basic auth user",
                      "defaultValue": "${{redpanda.REDPANDA_ADMIN_USER}}"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "gateway",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-21T20:09:52.134Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_98c1dd9108334b09ac1f",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 130,
    "typical_build_seconds": 15,
    "typical_start_seconds": 10,
    "slowest_service": "gateway"
  }
}
