{
  "manifest_version": "1.0.0",
  "template": {
    "id": "8ac64d7b-d10f-4516-8a2e-786e4af68b17",
    "slug": "doris",
    "name": "Doris",
    "description": "Sub-second analytics on billions of rows, self-hosted and MySQL-compatible",
    "url": "https://railway.com/deploy/doris",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/doris-railway"
    }
  },
  "services": [
    {
      "name": "doris-be",
      "source": {
        "repo": "https://github.com/gridalpha/doris-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "doris-fe",
      "source": {
        "repo": "https://github.com/gridalpha/doris-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "tcp_ports": [
        9030
      ],
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "doris-be",
      "description": "HTTP port Railway health-checks",
      "secret": false,
      "strategy": "default",
      "default": "8040"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "doris-be",
      "description": "Selects the backend image",
      "secret": false,
      "strategy": "default",
      "default": "Dockerfile.be"
    },
    {
      "key": "PORT",
      "service": "doris-fe",
      "description": "HTTP port Railway health-checks",
      "secret": false,
      "strategy": "default",
      "default": "8030"
    },
    {
      "key": "DORIS_BE_HOST",
      "service": "doris-fe",
      "description": "Backend private hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DORIS_S3_BUCKET",
      "service": "doris-fe",
      "description": "Cold-tier bucket name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DORIS_S3_REGION",
      "service": "doris-fe",
      "description": "Cold-tier bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DORIS_S3_ENDPOINT",
      "service": "doris-fe",
      "description": "Cold-tier S3 endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DORIS_S3_ROOT_PATH",
      "service": "doris-fe",
      "description": "Key prefix inside the bucket",
      "secret": false,
      "strategy": "default",
      "default": "doris"
    },
    {
      "key": "DORIS_ROOT_PASSWORD",
      "service": "doris-fe",
      "description": "Password for the root account",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DORIS_S3_ACCESS_KEY_ID",
      "service": "doris-fe",
      "description": "Cold-tier access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "doris-fe",
      "description": "Selects the frontend image",
      "secret": false,
      "strategy": "default",
      "default": "Dockerfile.fe"
    },
    {
      "key": "DORIS_S3_SECRET_ACCESS_KEY",
      "service": "doris-fe",
      "description": "Cold-tier secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "doris"
      }
    },
    "cli": "railway deploy --template doris",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "8ac64d7b-d10f-4516-8a2e-786e4af68b17",
            "serializedConfig": {
              "buckets": {
                "100873a1-d210-4602-be3d-4d9992775217": {
                  "name": "doris-storage"
                }
              },
              "services": {
                "4099f5ad-3c7d-428f-af04-abdeb43e4270": {
                  "icon": "https://raw.githubusercontent.com/apache/doris-website/master/static/images/doris-logo-only.png",
                  "name": "doris-be",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/health",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/doris-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port Railway health-checks",
                      "defaultValue": "8040"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Selects the backend image",
                      "defaultValue": "Dockerfile.be"
                    }
                  },
                  "volumeMounts": {
                    "4099f5ad-3c7d-428f-af04-abdeb43e4270": {
                      "mountPath": "/data"
                    }
                  }
                },
                "d0f35b3d-43ad-4cb5-9660-a1449d21542a": {
                  "icon": "https://raw.githubusercontent.com/apache/doris-website/master/static/images/doris-logo-only.png",
                  "name": "doris-fe",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/doris-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port Railway health-checks",
                      "defaultValue": "8030"
                    },
                    "DORIS_BE_HOST": {
                      "isOptional": false,
                      "description": "Backend private hostname",
                      "defaultValue": "${{doris-be.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DORIS_S3_BUCKET": {
                      "isOptional": false,
                      "description": "Cold-tier bucket name",
                      "defaultValue": "${{doris-storage.BUCKET}}"
                    },
                    "DORIS_S3_REGION": {
                      "isOptional": false,
                      "description": "Cold-tier bucket region",
                      "defaultValue": "${{doris-storage.REGION}}"
                    },
                    "DORIS_S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "Cold-tier S3 endpoint",
                      "defaultValue": "${{doris-storage.ENDPOINT}}"
                    },
                    "DORIS_S3_ROOT_PATH": {
                      "isOptional": false,
                      "description": "Key prefix inside the bucket",
                      "defaultValue": "doris"
                    },
                    "DORIS_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the root account",
                      "defaultValue": "{{DORIS_ROOT_PASSWORD}}"
                    },
                    "DORIS_S3_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Cold-tier access key",
                      "defaultValue": "${{doris-storage.ACCESS_KEY_ID}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Selects the frontend image",
                      "defaultValue": "Dockerfile.fe"
                    },
                    "DORIS_S3_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Cold-tier secret key",
                      "defaultValue": "${{doris-storage.SECRET_ACCESS_KEY}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "9030": {}
                    },
                    "serviceDomains": {
                      "<hasDomain>:8030": {
                        "port": 8030
                      }
                    }
                  },
                  "volumeMounts": {
                    "d0f35b3d-43ad-4cb5-9660-a1449d21542a": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "doris-fe",
      "method": "GET",
      "path": "/",
      "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:06:04.433Z",
  "success_rate_30d": 0.1429,
  "validation": {
    "last_run_id": "run_c8fc7a1dcefd46d580f1",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ],
    "typical_ready_seconds": 351
  }
}
