{
  "manifest_version": "1.0.0",
  "template": {
    "id": "68efb4ce-47b0-48d9-b0aa-7b1e08b20eb2",
    "slug": "starrocks-analytics",
    "name": "StarRocks",
    "description": "Fast SQL OLAP database for analyzing large amounts of data",
    "url": "https://railway.com/deploy/starrocks-analytics",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/starrocks-railway"
    }
  },
  "services": [
    {
      "name": "starrocks-cn",
      "source": {
        "repo": "https://github.com/gridalpha/starrocks-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "starrocks-fe",
      "source": {
        "repo": "https://github.com/gridalpha/starrocks-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "tcp_ports": [
        9030
      ],
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "starrocks-cn",
      "description": "Compute node HTTP port",
      "secret": false,
      "strategy": "default",
      "default": "8040"
    },
    {
      "key": "SR_FE_HOST",
      "service": "starrocks-cn",
      "description": "Private hostname of the frontend",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "SR_ROOT_PASSWORD",
      "service": "starrocks-cn",
      "description": "Used to register with the frontend",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "starrocks-cn",
      "description": "Selects the compute node image",
      "secret": false,
      "strategy": "default",
      "default": "Dockerfile.cn"
    },
    {
      "key": "PORT",
      "service": "starrocks-fe",
      "description": "HTTP console and REST API port",
      "secret": false,
      "strategy": "default",
      "default": "8030"
    },
    {
      "key": "SR_S3_BUCKET",
      "service": "starrocks-fe",
      "description": "Bucket holding every tablet",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SR_S3_PREFIX",
      "service": "starrocks-fe",
      "description": "Key prefix inside the bucket",
      "secret": false,
      "strategy": "default",
      "default": "starrocks"
    },
    {
      "key": "SR_S3_REGION",
      "service": "starrocks-fe",
      "description": "Bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SR_S3_ENDPOINT",
      "service": "starrocks-fe",
      "description": "S3 endpoint URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SR_ROOT_PASSWORD",
      "service": "starrocks-fe",
      "description": "Password for the root superuser",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "SR_S3_ACCESS_KEY_ID",
      "service": "starrocks-fe",
      "description": "Bucket access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "starrocks-fe",
      "description": "Selects the frontend image",
      "secret": false,
      "strategy": "default",
      "default": "Dockerfile.fe"
    },
    {
      "key": "SR_S3_SECRET_ACCESS_KEY",
      "service": "starrocks-fe",
      "description": "Bucket secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "starrocks-analytics"
      }
    },
    "cli": "railway deploy --template starrocks-analytics",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "68efb4ce-47b0-48d9-b0aa-7b1e08b20eb2",
            "serializedConfig": {
              "buckets": {
                "e7090988-9007-40f3-b847-849a69e57da3": {
                  "name": "starrocks-storage"
                }
              },
              "services": {
                "564393cb-1011-4d25-b9e5-2f43caf092a5": {
                  "icon": "https://raw.githubusercontent.com/StarRocks/starrocks/main/docs/docusaurus/static/img/logo.svg",
                  "name": "starrocks-cn",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/health",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/starrocks-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Compute node HTTP port",
                      "defaultValue": "8040"
                    },
                    "SR_FE_HOST": {
                      "isOptional": false,
                      "description": "Private hostname of the frontend",
                      "defaultValue": "${{starrocks-fe.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "SR_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Used to register with the frontend",
                      "defaultValue": "${{starrocks-fe.SR_ROOT_PASSWORD}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Selects the compute node image",
                      "defaultValue": "Dockerfile.cn"
                    }
                  },
                  "volumeMounts": {
                    "564393cb-1011-4d25-b9e5-2f43caf092a5": {
                      "mountPath": "/data"
                    }
                  }
                },
                "e8f95459-00b9-4cfa-9e62-7703e60e9ce7": {
                  "icon": "https://raw.githubusercontent.com/StarRocks/starrocks/main/docs/docusaurus/static/img/logo.svg",
                  "name": "starrocks-fe",
                  "deploy": {
                    "startCommand": "",
                    "healthcheckPath": "/api/bootstrap",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/starrocks-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP console and REST API port",
                      "defaultValue": "8030"
                    },
                    "SR_S3_BUCKET": {
                      "isOptional": false,
                      "description": "Bucket holding every tablet",
                      "defaultValue": "${{starrocks-storage.BUCKET}}"
                    },
                    "SR_S3_PREFIX": {
                      "isOptional": false,
                      "description": "Key prefix inside the bucket",
                      "defaultValue": "starrocks"
                    },
                    "SR_S3_REGION": {
                      "isOptional": false,
                      "description": "Bucket region",
                      "defaultValue": "${{starrocks-storage.REGION}}"
                    },
                    "SR_S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "S3 endpoint URL",
                      "defaultValue": "${{starrocks-storage.ENDPOINT}}"
                    },
                    "SR_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the root superuser",
                      "defaultValue": "{{SR_ROOT_PASSWORD}}"
                    },
                    "SR_S3_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket access key",
                      "defaultValue": "${{starrocks-storage.ACCESS_KEY_ID}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Selects the frontend image",
                      "defaultValue": "Dockerfile.fe"
                    },
                    "SR_S3_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret key",
                      "defaultValue": "${{starrocks-storage.SECRET_ACCESS_KEY}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "9030": {}
                    },
                    "serviceDomains": {
                      "<hasDomain>:8030": {
                        "port": 8030
                      }
                    }
                  },
                  "volumeMounts": {
                    "e8f95459-00b9-4cfa-9e62-7703e60e9ce7": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "starrocks-fe",
      "method": "GET",
      "path": "/api/bootstrap",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T04:14:41.730Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-21T20:03:34.614Z",
  "success_rate_30d": 0.1429,
  "validation": {
    "last_run_id": "run_ae44b0458afb4a1caf9a",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ],
    "typical_ready_seconds": 148
  }
}
