{
  "manifest_version": "1.0.0",
  "template": {
    "id": "6419c813-3f93-4175-9a4e-a232d555f83a",
    "slug": "clickhouse-server",
    "name": "ClickHouse | Open Source OLAP Database",
    "description": "Self-host ClickHouse on Railway for real-time fast analytics",
    "url": "https://railway.com/deploy/clickhouse-server",
    "upstream": {
      "image": "clickhouse/clickhouse-server:24"
    }
  },
  "services": [
    {
      "name": "ClickHouse",
      "source": {
        "image": "clickhouse/clickhouse-server:24"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/clickhouse",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "CLICKHOUSE_DB",
      "service": "ClickHouse",
      "description": "Initial database name",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "CLICKHOUSE_USER",
      "service": "ClickHouse",
      "description": "Bootstrap admin username",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "CLICKHOUSE_PASSWORD",
      "service": "ClickHouse",
      "description": "Bootstrap admin password (plain value, not ${{secret()}})",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT",
      "service": "ClickHouse",
      "description": "Enable SQL user/role management",
      "secret": false,
      "strategy": "default",
      "default": "1"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "clickhouse-server"
      }
    },
    "cli": "railway deploy --template clickhouse-server",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "6419c813-3f93-4175-9a4e-a232d555f83a",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "b01521d5-31aa-44cf-856c-6fedaedc4f14": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/clickhouse.svg",
                  "name": "ClickHouse",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "clickhouse/clickhouse-server:24"
                  },
                  "variables": {
                    "CLICKHOUSE_DB": {
                      "isOptional": false,
                      "description": "Initial database name",
                      "defaultValue": "default"
                    },
                    "CLICKHOUSE_USER": {
                      "isOptional": false,
                      "description": "Bootstrap admin username",
                      "defaultValue": "admin"
                    },
                    "CLICKHOUSE_PASSWORD": {
                      "isOptional": false,
                      "description": "Bootstrap admin password (plain value, not ${{secret()}})",
                      "defaultValue": "{{CLICKHOUSE_PASSWORD}}"
                    },
                    "CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT": {
                      "isOptional": false,
                      "description": "Enable SQL user/role management",
                      "defaultValue": "1"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8123": {
                        "port": 8123
                      }
                    }
                  },
                  "volumeMounts": {
                    "b01521d5-31aa-44cf-856c-6fedaedc4f14": {
                      "mountPath": "/var/lib/clickhouse"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T10:14:47.278Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-20T13:54:56.303Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_ab38613dbf0a472291f8",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 44,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "ClickHouse"
  }
}
