{
  "manifest_version": "1.0.0",
  "template": {
    "id": "3b51f026-05aa-4494-8f4c-87d682cf8710",
    "slug": "risingwave",
    "name": "RisingWave",
    "description": "RisingWave streaming DB on Railway: meta, compute, compactor, frontend",
    "url": "https://railway.com/deploy/risingwave",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/risingwave-railway"
    }
  },
  "services": [
    {
      "name": "dashboard",
      "source": {
        "repo": "https://github.com/gridalpha/risingwave-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "compactor",
      "source": {
        "image": "risingwavelabs/risingwave:v3.0.3"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "prometheus",
      "source": {
        "repo": "https://github.com/gridalpha/risingwave-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/prometheus",
      "http": false
    },
    {
      "name": "frontend",
      "source": {
        "repo": "https://github.com/gridalpha/risingwave-railway"
      },
      "needs_volume": false,
      "tcp_ports": [
        4566
      ],
      "http": false
    },
    {
      "name": "compute",
      "source": {
        "image": "risingwavelabs/risingwave:v3.0.3"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "meta",
      "source": {
        "image": "risingwavelabs/risingwave:v3.0.3"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "dashboard",
      "description": "Public HTTP listener",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "DASHBOARD_PASSWORD",
      "service": "dashboard",
      "description": "Basic-auth password, hashed at boot",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DASHBOARD_UPSTREAM",
      "service": "dashboard",
      "description": "Meta dashboard behind the gateway",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DASHBOARD_USERNAME",
      "service": "dashboard",
      "description": "Basic-auth username",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "PORT",
      "service": "compactor",
      "description": "Port the health check probes",
      "secret": false,
      "strategy": "default",
      "default": "1260"
    },
    {
      "key": "AWS_REGION",
      "service": "compactor",
      "description": "Bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RW_META_ADDR",
      "service": "compactor",
      "description": "Meta node endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RUST_BACKTRACE",
      "service": "compactor",
      "description": "Backtraces in crash logs",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "RW_LISTEN_ADDR",
      "service": "compactor",
      "description": "Compactor gRPC listener, dual-stack",
      "secret": false,
      "strategy": "default",
      "default": "[::]:6660"
    },
    {
      "key": "RW_S3_ENDPOINT",
      "service": "compactor",
      "description": "Object storage endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ENABLE_TELEMETRY",
      "service": "compactor",
      "description": "Upstream usage reporting",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "AWS_ACCESS_KEY_ID",
      "service": "compactor",
      "description": "Bucket access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RW_ADVERTISE_ADDR",
      "service": "compactor",
      "description": "Address peers dial",
      "secret": false,
      "strategy": "default",
      "default": "compactor.railway.internal:6660"
    },
    {
      "key": "AWS_SECRET_ACCESS_KEY",
      "service": "compactor",
      "description": "Bucket secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RW_IS_FORCE_PATH_STYLE",
      "service": "compactor",
      "description": "Path-style S3 addressing",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "RW_PROMETHEUS_LISTENER_ADDR",
      "service": "compactor",
      "description": "Metrics listener",
      "secret": false,
      "strategy": "default",
      "default": "[::]:1260"
    },
    {
      "key": "PORT",
      "service": "prometheus",
      "description": "Port the health check probes",
      "secret": false,
      "strategy": "default",
      "default": "9500"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "prometheus",
      "description": "Lets the image write to its volume",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "PORT",
      "service": "frontend",
      "description": "Port the health check probes",
      "secret": false,
      "strategy": "default",
      "default": "2222"
    },
    {
      "key": "AWS_REGION",
      "service": "frontend",
      "description": "Bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RW_META_ADDR",
      "service": "frontend",
      "description": "Meta node endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RUST_BACKTRACE",
      "service": "frontend",
      "description": "Backtraces in crash logs",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "RW_LISTEN_ADDR",
      "service": "frontend",
      "description": "PostgreSQL wire protocol listener",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0:4566"
    },
    {
      "key": "RW_PGWIRE_PORT",
      "service": "frontend",
      "description": "Port the boot script connects to",
      "secret": false,
      "strategy": "default",
      "default": "4566"
    },
    {
      "key": "RW_S3_ENDPOINT",
      "service": "frontend",
      "description": "Object storage endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ENABLE_TELEMETRY",
      "service": "frontend",
      "description": "Upstream usage reporting",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "RW_ROOT_PASSWORD",
      "service": "frontend",
      "description": "Password for the root superuser",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "AWS_ACCESS_KEY_ID",
      "service": "frontend",
      "description": "Bucket access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RW_ADVERTISE_ADDR",
      "service": "frontend",
      "description": "Address the meta node records",
      "secret": false,
      "strategy": "default",
      "default": "frontend.railway.internal:4566"
    },
    {
      "key": "AWS_SECRET_ACCESS_KEY",
      "service": "frontend",
      "description": "Bucket secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RW_IS_FORCE_PATH_STYLE",
      "service": "frontend",
      "description": "Path-style S3 addressing",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "RW_PROMETHEUS_ENDPOINT",
      "service": "frontend",
      "description": "Metrics source for catalog views",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RW_PROMETHEUS_LISTENER_ADDR",
      "service": "frontend",
      "description": "Metrics listener",
      "secret": false,
      "strategy": "default",
      "default": "[::]:2222"
    },
    {
      "key": "RW_HEALTH_CHECK_LISTENER_ADDR",
      "service": "frontend",
      "description": "Frontend RPC listener",
      "secret": false,
      "strategy": "default",
      "default": "[::]:6786"
    },
    {
      "key": "PORT",
      "service": "compute",
      "description": "Port the health check probes",
      "secret": false,
      "strategy": "default",
      "default": "1222"
    },
    {
      "key": "AWS_REGION",
      "service": "compute",
      "description": "Bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RW_META_ADDR",
      "service": "compute",
      "description": "Meta node endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RUST_BACKTRACE",
      "service": "compute",
      "description": "Backtraces in crash logs",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "RW_LISTEN_ADDR",
      "service": "compute",
      "description": "Streaming gRPC listener, dual-stack",
      "secret": false,
      "strategy": "default",
      "default": "[::]:5688"
    },
    {
      "key": "RW_S3_ENDPOINT",
      "service": "compute",
      "description": "Object storage endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ENABLE_TELEMETRY",
      "service": "compute",
      "description": "Upstream usage reporting",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "AWS_ACCESS_KEY_ID",
      "service": "compute",
      "description": "Bucket access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RW_ADVERTISE_ADDR",
      "service": "compute",
      "description": "Address peers dial",
      "secret": false,
      "strategy": "default",
      "default": "compute.railway.internal:5688"
    },
    {
      "key": "AWS_SECRET_ACCESS_KEY",
      "service": "compute",
      "description": "Bucket secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RW_IS_FORCE_PATH_STYLE",
      "service": "compute",
      "description": "Path-style S3 addressing",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "RW_PROMETHEUS_LISTENER_ADDR",
      "service": "compute",
      "description": "Metrics listener",
      "secret": false,
      "strategy": "default",
      "default": "[::]:1222"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Cluster location on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Superuser created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL certificate expiry in days",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Superuser password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PORT",
      "service": "meta",
      "description": "Port the health check probes",
      "secret": false,
      "strategy": "default",
      "default": "1250"
    },
    {
      "key": "AWS_REGION",
      "service": "meta",
      "description": "Bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RW_BACKEND",
      "service": "meta",
      "description": "Metadata store backend",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "RUST_BACKTRACE",
      "service": "meta",
      "description": "Backtraces in crash logs",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "RW_LISTEN_ADDR",
      "service": "meta",
      "description": "Cluster gRPC listener, dual-stack",
      "secret": false,
      "strategy": "default",
      "default": "[::]:5690"
    },
    {
      "key": "RW_S3_ENDPOINT",
      "service": "meta",
      "description": "Object storage endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RW_STATE_STORE",
      "service": "meta",
      "description": "Streaming state store URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RW_SQL_DATABASE",
      "service": "meta",
      "description": "Metadata database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RW_SQL_ENDPOINT",
      "service": "meta",
      "description": "Metadata database host and port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RW_SQL_PASSWORD",
      "service": "meta",
      "description": "Metadata database password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RW_SQL_USERNAME",
      "service": "meta",
      "description": "Metadata database user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ENABLE_TELEMETRY",
      "service": "meta",
      "description": "Upstream usage reporting",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "AWS_ACCESS_KEY_ID",
      "service": "meta",
      "description": "Bucket access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RW_ADVERTISE_ADDR",
      "service": "meta",
      "description": "Address peers dial",
      "secret": false,
      "strategy": "default",
      "default": "meta.railway.internal:5690"
    },
    {
      "key": "RW_DASHBOARD_HOST",
      "service": "meta",
      "description": "Web dashboard listener",
      "secret": false,
      "strategy": "default",
      "default": "[::]:5691"
    },
    {
      "key": "RW_DATA_DIRECTORY",
      "service": "meta",
      "description": "Key prefix inside the bucket",
      "secret": false,
      "strategy": "default",
      "default": "hummock_001"
    },
    {
      "key": "RW_SQL_URL_PARAMS",
      "service": "meta",
      "description": "Private-network connection, no TLS",
      "secret": false,
      "strategy": "default",
      "default": "sslmode=disable"
    },
    {
      "key": "RW_PROMETHEUS_HOST",
      "service": "meta",
      "description": "Metrics listener",
      "secret": false,
      "strategy": "default",
      "default": "[::]:1250"
    },
    {
      "key": "AWS_SECRET_ACCESS_KEY",
      "service": "meta",
      "description": "Bucket secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RW_IS_FORCE_PATH_STYLE",
      "service": "meta",
      "description": "Path-style S3 addressing",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "RW_PROMETHEUS_ENDPOINT",
      "service": "meta",
      "description": "Metrics source for the dashboard",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RW_SECRET_STORE_PRIVATE_KEY_HEX",
      "service": "meta",
      "description": "Encrypts connector secrets at rest",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "risingwave"
      }
    },
    "cli": "railway deploy --template risingwave",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "3b51f026-05aa-4494-8f4c-87d682cf8710",
            "serializedConfig": {
              "buckets": {
                "670e852c-841c-4a0d-a4fb-4aecb54b9aaf": {
                  "name": "risingwave-state"
                }
              },
              "services": {
                "10adba55-a60e-4846-a594-1afe3bba8054": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/caddy.svg",
                  "name": "dashboard",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/risingwave-railway",
                    "rootDirectory": "gateway"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Public HTTP listener",
                      "defaultValue": "8080"
                    },
                    "DASHBOARD_PASSWORD": {
                      "isOptional": false,
                      "description": "Basic-auth password, hashed at boot",
                      "defaultValue": "{{DASHBOARD_PASSWORD}}"
                    },
                    "DASHBOARD_UPSTREAM": {
                      "isOptional": false,
                      "description": "Meta dashboard behind the gateway",
                      "defaultValue": "${{meta.RAILWAY_PRIVATE_DOMAIN}}:5691"
                    },
                    "DASHBOARD_USERNAME": {
                      "isOptional": false,
                      "description": "Basic-auth username",
                      "defaultValue": "admin"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "15a9865a-134e-4b84-9cd6-5ae8f6cb8def": {
                  "icon": "https://raw.githubusercontent.com/risingwavelabs/risingwave/v3.0.3/dashboard/public/risingwave.svg",
                  "name": "compactor",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'case \"$RW_META_ADDR\" in \"\"|\"http://:\"*) RW_META_ADDR=http://meta.railway.internal:5690;; esac; export RW_META_ADDR; echo \"rw-boot: meta at $RW_META_ADDR\"; exec /risingwave/bin/risingwave compactor-node'",
                    "healthcheckPath": "/metrics",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "risingwavelabs/risingwave:v3.0.3"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the health check probes",
                      "defaultValue": "1260"
                    },
                    "AWS_REGION": {
                      "isOptional": false,
                      "description": "Bucket region",
                      "defaultValue": "${{risingwave-state.REGION}}"
                    },
                    "RW_META_ADDR": {
                      "isOptional": false,
                      "description": "Meta node endpoint",
                      "defaultValue": "http://${{meta.RAILWAY_PRIVATE_DOMAIN}}:5690"
                    },
                    "RUST_BACKTRACE": {
                      "isOptional": false,
                      "description": "Backtraces in crash logs",
                      "defaultValue": "1"
                    },
                    "RW_LISTEN_ADDR": {
                      "isOptional": false,
                      "description": "Compactor gRPC listener, dual-stack",
                      "defaultValue": "[::]:6660"
                    },
                    "RW_S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "Object storage endpoint",
                      "defaultValue": "${{risingwave-state.ENDPOINT}}"
                    },
                    "ENABLE_TELEMETRY": {
                      "isOptional": false,
                      "description": "Upstream usage reporting",
                      "defaultValue": "false"
                    },
                    "AWS_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket access key",
                      "defaultValue": "${{risingwave-state.ACCESS_KEY_ID}}"
                    },
                    "RW_ADVERTISE_ADDR": {
                      "isOptional": false,
                      "description": "Address peers dial",
                      "defaultValue": "compactor.railway.internal:6660"
                    },
                    "AWS_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret key",
                      "defaultValue": "${{risingwave-state.SECRET_ACCESS_KEY}}"
                    },
                    "RW_IS_FORCE_PATH_STYLE": {
                      "isOptional": false,
                      "description": "Path-style S3 addressing",
                      "defaultValue": "true"
                    },
                    "RW_PROMETHEUS_LISTENER_ADDR": {
                      "isOptional": false,
                      "description": "Metrics listener",
                      "defaultValue": "[::]:1260"
                    }
                  }
                },
                "2f65add4-7863-470c-8850-e48c5d4cf0b8": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/prometheus.svg",
                  "name": "prometheus",
                  "deploy": {
                    "startCommand": "/bin/prometheus --config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/prometheus --web.listen-address=[::]:9500 --storage.tsdb.retention.time=15d --storage.tsdb.retention.size=4GB",
                    "healthcheckPath": "/metrics",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/risingwave-railway",
                    "rootDirectory": "prometheus"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the health check probes",
                      "defaultValue": "9500"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Lets the image write to its volume",
                      "defaultValue": "0"
                    }
                  },
                  "volumeMounts": {
                    "2f65add4-7863-470c-8850-e48c5d4cf0b8": {
                      "mountPath": "/prometheus"
                    }
                  }
                },
                "4cb2ba18-8d39-478f-9bb6-7f1607ba5de6": {
                  "icon": "https://raw.githubusercontent.com/risingwavelabs/risingwave/v3.0.3/dashboard/public/risingwave.svg",
                  "name": "frontend",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'case \"$RW_META_ADDR\" in \"\"|\"http://:\"*) RW_META_ADDR=http://meta.railway.internal:5690;; esac; export RW_META_ADDR; case \"$RW_PROMETHEUS_ENDPOINT\" in \"\"|\"http://:\"*) RW_PROMETHEUS_ENDPOINT=http://prometheus.railway.internal:9500;; esac; export RW_PROMETHEUS_ENDPOINT; echo \"rw-boot: meta at $RW_META_ADDR, prometheus at $RW_PROMETHEUS_ENDPOINT\"; exec /usr/local/bin/rw-frontend-entrypoint.sh'",
                    "healthcheckPath": "",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/risingwave-railway",
                    "rootDirectory": "risingwave"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the health check probes",
                      "defaultValue": "2222"
                    },
                    "AWS_REGION": {
                      "isOptional": false,
                      "description": "Bucket region",
                      "defaultValue": "${{risingwave-state.REGION}}"
                    },
                    "RW_META_ADDR": {
                      "isOptional": false,
                      "description": "Meta node endpoint",
                      "defaultValue": "http://${{meta.RAILWAY_PRIVATE_DOMAIN}}:5690"
                    },
                    "RUST_BACKTRACE": {
                      "isOptional": false,
                      "description": "Backtraces in crash logs",
                      "defaultValue": "1"
                    },
                    "RW_LISTEN_ADDR": {
                      "isOptional": false,
                      "description": "PostgreSQL wire protocol listener",
                      "defaultValue": "0.0.0.0:4566"
                    },
                    "RW_PGWIRE_PORT": {
                      "isOptional": false,
                      "description": "Port the boot script connects to",
                      "defaultValue": "4566"
                    },
                    "RW_S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "Object storage endpoint",
                      "defaultValue": "${{risingwave-state.ENDPOINT}}"
                    },
                    "ENABLE_TELEMETRY": {
                      "isOptional": false,
                      "description": "Upstream usage reporting",
                      "defaultValue": "false"
                    },
                    "RW_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the root superuser",
                      "defaultValue": "{{RW_ROOT_PASSWORD}}"
                    },
                    "AWS_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket access key",
                      "defaultValue": "${{risingwave-state.ACCESS_KEY_ID}}"
                    },
                    "RW_ADVERTISE_ADDR": {
                      "isOptional": false,
                      "description": "Address the meta node records",
                      "defaultValue": "frontend.railway.internal:4566"
                    },
                    "AWS_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret key",
                      "defaultValue": "${{risingwave-state.SECRET_ACCESS_KEY}}"
                    },
                    "RW_IS_FORCE_PATH_STYLE": {
                      "isOptional": false,
                      "description": "Path-style S3 addressing",
                      "defaultValue": "true"
                    },
                    "RW_PROMETHEUS_ENDPOINT": {
                      "isOptional": false,
                      "description": "Metrics source for catalog views",
                      "defaultValue": "http://${{prometheus.RAILWAY_PRIVATE_DOMAIN}}:9500"
                    },
                    "RW_PROMETHEUS_LISTENER_ADDR": {
                      "isOptional": false,
                      "description": "Metrics listener",
                      "defaultValue": "[::]:2222"
                    },
                    "RW_HEALTH_CHECK_LISTENER_ADDR": {
                      "isOptional": false,
                      "description": "Frontend RPC listener",
                      "defaultValue": "[::]:6786"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "4566": {}
                    }
                  }
                },
                "6c19afce-6669-4280-a638-38bacdf92f66": {
                  "icon": "https://raw.githubusercontent.com/risingwavelabs/risingwave/v3.0.3/dashboard/public/risingwave.svg",
                  "name": "compute",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'case \"$RW_META_ADDR\" in \"\"|\"http://:\"*) RW_META_ADDR=http://meta.railway.internal:5690;; esac; export RW_META_ADDR; echo \"rw-boot: meta at $RW_META_ADDR\"; exec /risingwave/bin/risingwave compute-node'",
                    "healthcheckPath": "/metrics",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "risingwavelabs/risingwave:v3.0.3"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the health check probes",
                      "defaultValue": "1222"
                    },
                    "AWS_REGION": {
                      "isOptional": false,
                      "description": "Bucket region",
                      "defaultValue": "${{risingwave-state.REGION}}"
                    },
                    "RW_META_ADDR": {
                      "isOptional": false,
                      "description": "Meta node endpoint",
                      "defaultValue": "http://${{meta.RAILWAY_PRIVATE_DOMAIN}}:5690"
                    },
                    "RUST_BACKTRACE": {
                      "isOptional": false,
                      "description": "Backtraces in crash logs",
                      "defaultValue": "1"
                    },
                    "RW_LISTEN_ADDR": {
                      "isOptional": false,
                      "description": "Streaming gRPC listener, dual-stack",
                      "defaultValue": "[::]:5688"
                    },
                    "RW_S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "Object storage endpoint",
                      "defaultValue": "${{risingwave-state.ENDPOINT}}"
                    },
                    "ENABLE_TELEMETRY": {
                      "isOptional": false,
                      "description": "Upstream usage reporting",
                      "defaultValue": "false"
                    },
                    "AWS_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket access key",
                      "defaultValue": "${{risingwave-state.ACCESS_KEY_ID}}"
                    },
                    "RW_ADVERTISE_ADDR": {
                      "isOptional": false,
                      "description": "Address peers dial",
                      "defaultValue": "compute.railway.internal:5688"
                    },
                    "AWS_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret key",
                      "defaultValue": "${{risingwave-state.SECRET_ACCESS_KEY}}"
                    },
                    "RW_IS_FORCE_PATH_STYLE": {
                      "isOptional": false,
                      "description": "Path-style S3 addressing",
                      "defaultValue": "true"
                    },
                    "RW_PROMETHEUS_LISTENER_ADDR": {
                      "isOptional": false,
                      "description": "Metrics listener",
                      "defaultValue": "[::]:1222"
                    }
                  }
                },
                "e038e34b-8593-447d-a50d-53ece67eaa0e": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Cluster location on the volume",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created on first boot",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Superuser created on first boot",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "SSL certificate expiry in days",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "e038e34b-8593-447d-a50d-53ece67eaa0e": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "f2821f9d-9bfe-4125-ba59-49dc16fe0e26": {
                  "icon": "https://raw.githubusercontent.com/risingwavelabs/risingwave/v3.0.3/dashboard/public/risingwave.svg",
                  "name": "meta",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'case \"$RW_PROMETHEUS_ENDPOINT\" in \"\"|\"http://:\"*) RW_PROMETHEUS_ENDPOINT=http://prometheus.railway.internal:9500;; esac; export RW_PROMETHEUS_ENDPOINT; exec /risingwave/bin/risingwave meta-node'",
                    "healthcheckPath": "/metrics",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "risingwavelabs/risingwave:v3.0.3"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the health check probes",
                      "defaultValue": "1250"
                    },
                    "AWS_REGION": {
                      "isOptional": false,
                      "description": "Bucket region",
                      "defaultValue": "${{risingwave-state.REGION}}"
                    },
                    "RW_BACKEND": {
                      "isOptional": false,
                      "description": "Metadata store backend",
                      "defaultValue": "postgres"
                    },
                    "RUST_BACKTRACE": {
                      "isOptional": false,
                      "description": "Backtraces in crash logs",
                      "defaultValue": "1"
                    },
                    "RW_LISTEN_ADDR": {
                      "isOptional": false,
                      "description": "Cluster gRPC listener, dual-stack",
                      "defaultValue": "[::]:5690"
                    },
                    "RW_S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "Object storage endpoint",
                      "defaultValue": "${{risingwave-state.ENDPOINT}}"
                    },
                    "RW_STATE_STORE": {
                      "isOptional": false,
                      "description": "Streaming state store URL",
                      "defaultValue": "hummock+s3://${{risingwave-state.BUCKET}}"
                    },
                    "RW_SQL_DATABASE": {
                      "isOptional": false,
                      "description": "Metadata database name",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "RW_SQL_ENDPOINT": {
                      "isOptional": false,
                      "description": "Metadata database host and port",
                      "defaultValue": "${{Postgres.PGHOST}}:${{Postgres.PGPORT}}"
                    },
                    "RW_SQL_PASSWORD": {
                      "isOptional": false,
                      "description": "Metadata database password",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "RW_SQL_USERNAME": {
                      "isOptional": false,
                      "description": "Metadata database user",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "ENABLE_TELEMETRY": {
                      "isOptional": false,
                      "description": "Upstream usage reporting",
                      "defaultValue": "false"
                    },
                    "AWS_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket access key",
                      "defaultValue": "${{risingwave-state.ACCESS_KEY_ID}}"
                    },
                    "RW_ADVERTISE_ADDR": {
                      "isOptional": false,
                      "description": "Address peers dial",
                      "defaultValue": "meta.railway.internal:5690"
                    },
                    "RW_DASHBOARD_HOST": {
                      "isOptional": false,
                      "description": "Web dashboard listener",
                      "defaultValue": "[::]:5691"
                    },
                    "RW_DATA_DIRECTORY": {
                      "isOptional": false,
                      "description": "Key prefix inside the bucket",
                      "defaultValue": "hummock_001"
                    },
                    "RW_SQL_URL_PARAMS": {
                      "isOptional": false,
                      "description": "Private-network connection, no TLS",
                      "defaultValue": "sslmode=disable"
                    },
                    "RW_PROMETHEUS_HOST": {
                      "isOptional": false,
                      "description": "Metrics listener",
                      "defaultValue": "[::]:1250"
                    },
                    "AWS_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret key",
                      "defaultValue": "${{risingwave-state.SECRET_ACCESS_KEY}}"
                    },
                    "RW_IS_FORCE_PATH_STYLE": {
                      "isOptional": false,
                      "description": "Path-style S3 addressing",
                      "defaultValue": "true"
                    },
                    "RW_PROMETHEUS_ENDPOINT": {
                      "isOptional": false,
                      "description": "Metrics source for the dashboard",
                      "defaultValue": "http://${{prometheus.RAILWAY_PRIVATE_DOMAIN}}:9500"
                    },
                    "RW_SECRET_STORE_PRIVATE_KEY_HEX": {
                      "isOptional": false,
                      "description": "Encrypts connector secrets at rest",
                      "defaultValue": "{{RW_SECRET_STORE_PRIVATE_KEY_HEX}}"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "dashboard",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 7,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-21T20:04:30.695Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_7ff8ffc345ca4117abba",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ]
  }
}
