{
  "manifest_version": "1.0.0",
  "template": {
    "id": "71828724-ddbf-496a-99c8-01286cbd470e",
    "slug": "clickhouse-1",
    "name": "ClickHouse",
    "description": "Deploy ClickHouse OLAP database with one click - version-agnostic & secure",
    "url": "https://railway.com/deploy/clickhouse-1",
    "upstream": {
      "repo_url": "https://github.com/nick0lay/ClickHouse"
    }
  },
  "services": [
    {
      "name": "ClickHouse",
      "source": {
        "repo": "https://github.com/nick0lay/ClickHouse"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "CLICKHOUSE_USER",
      "service": "ClickHouse",
      "description": "User name to create (replaces 'default' user)",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "CLICKHOUSE_PASSWORD",
      "service": "ClickHouse",
      "description": "User password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "CLICKHOUSE_SKIP_USER_SETUP",
      "service": "ClickHouse",
      "description": "Skip all user configuration. WARNING: Makes default user accessible without password",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "CLICKHOUSE_ACCESS_MANAGEMENT",
      "service": "ClickHouse",
      "description": "Grant user access management privileges",
      "secret": false,
      "strategy": "default",
      "default": "0"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "clickhouse-1"
      }
    },
    "cli": "railway deploy --template clickhouse-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "71828724-ddbf-496a-99c8-01286cbd470e",
            "serializedConfig": {
              "services": {
                "06c9dafb-bdf5-41a4-bd9d-bf92d8849236": {
                  "name": "ClickHouse",
                  "source": {
                    "repo": "nick0lay/ClickHouse",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "CLICKHOUSE_DB": {
                      "isOptional": true,
                      "description": "Database to create on startup",
                      "defaultValue": ""
                    },
                    "CLICKHOUSE_USER": {
                      "description": "User name to create (replaces 'default' user)",
                      "defaultValue": "default"
                    },
                    "CLICKHOUSE_PASSWORD": {
                      "description": "User password",
                      "defaultValue": "{{CLICKHOUSE_PASSWORD}}"
                    },
                    "CLICKHOUSE_IMAGE_TAG": {
                      "isOptional": true,
                      "description": "ClickHouse Docker image tag to deploy. Check available images https://hub.docker.com/r/clickhouse/clickhouse-server",
                      "defaultValue": ""
                    },
                    "CLICKHOUSE_SKIP_USER_SETUP": {
                      "description": "Skip all user configuration. WARNING: Makes default user accessible without password",
                      "defaultValue": "0"
                    },
                    "CLICKHOUSE_ACCESS_MANAGEMENT": {
                      "description": "Grant user access management privileges",
                      "defaultValue": "0"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-18T20:59:45.390Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_ff0b3b890bf54c799aea",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 141,
    "typical_build_seconds": 40,
    "typical_start_seconds": 10,
    "slowest_service": "ClickHouse"
  }
}
