{
  "manifest_version": "1.0.0",
  "template": {
    "id": "2a39c89e-be71-48ff-9dac-8b0c64e5edc3",
    "slug": "starrocks-olap",
    "name": "StarRocks — Self-Hosted Real-Time OLAP Database",
    "description": "Self-host StarRocks — fast real-time OLAP, MySQL-compatible SQL",
    "url": "https://railway.com/deploy/starrocks-olap",
    "upstream": {
      "image": "starrocks/allin1-ubuntu:4.1.4"
    }
  },
  "services": [
    {
      "name": "starrocks",
      "source": {
        "image": "starrocks/allin1-ubuntu:4.1.4"
      },
      "needs_volume": true,
      "volume_mount_path": "/data/persist",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "starrocks",
      "description": "Railway HTTP target port for StarRocks FE HTTP/API",
      "secret": false,
      "strategy": "default",
      "default": "8030"
    },
    {
      "key": "RUN_MODE",
      "service": "starrocks",
      "description": "Use local BE storage in shared-nothing mode",
      "secret": false,
      "strategy": "default",
      "default": "shared_nothing"
    },
    {
      "key": "QUERY_PORT",
      "service": "starrocks",
      "description": "MySQL-compatible SQL query port",
      "secret": false,
      "strategy": "default",
      "default": "9030"
    },
    {
      "key": "STARROCKS_FE_HEAP",
      "service": "starrocks",
      "description": "Maximum JVM heap allocated to the FE service",
      "secret": false,
      "strategy": "default",
      "default": "1024m"
    },
    {
      "key": "STARROCKS_META_DIR",
      "service": "starrocks",
      "description": "Persistent FE metadata directory",
      "secret": false,
      "strategy": "default",
      "default": "/data/persist/fe-meta"
    },
    {
      "key": "STARROCKS_STORAGE_ROOT",
      "service": "starrocks",
      "description": "Persistent BE analytical data directory",
      "secret": false,
      "strategy": "default",
      "default": "/data/persist/be-storage"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "starrocks-olap"
      }
    },
    "cli": "railway deploy --template starrocks-olap",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "2a39c89e-be71-48ff-9dac-8b0c64e5edc3",
            "serializedConfig": {
              "services": {
                "00c44053-c5c2-4644-8e35-639df66f27dc": {
                  "icon": "https://www.gravatar.com/avatar/26712e45547dddc52f8c9671fe6e75b8?s=80&r=g&d=mm",
                  "name": "starrocks",
                  "source": {
                    "image": "starrocks/allin1-ubuntu:4.1.4"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Railway HTTP target port for StarRocks FE HTTP/API",
                      "defaultValue": "8030"
                    },
                    "RUN_MODE": {
                      "isOptional": false,
                      "description": "Use local BE storage in shared-nothing mode",
                      "defaultValue": "shared_nothing"
                    },
                    "QUERY_PORT": {
                      "isOptional": false,
                      "description": "MySQL-compatible SQL query port",
                      "defaultValue": "9030"
                    },
                    "STARROCKS_FE_HEAP": {
                      "isOptional": false,
                      "description": "Maximum JVM heap allocated to the FE service",
                      "defaultValue": "1024m"
                    },
                    "STARROCKS_META_DIR": {
                      "isOptional": false,
                      "description": "Persistent FE metadata directory",
                      "defaultValue": "/data/persist/fe-meta"
                    },
                    "STARROCKS_STORAGE_ROOT": {
                      "isOptional": false,
                      "description": "Persistent BE analytical data directory",
                      "defaultValue": "/data/persist/be-storage"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8030": {
                        "port": 8030
                      }
                    }
                  },
                  "volumeMounts": {
                    "00c44053-c5c2-4644-8e35-639df66f27dc": {
                      "mountPath": "/data/persist"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-23T16:14:58.907Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-21T19:15:51.418Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_63a2ff3fdb1f49b3b61f",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 92,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "starrocks"
  }
}
