{
  "manifest_version": "1.0.0",
  "template": {
    "id": "717508a2-f2a7-4b8b-8737-488d0a698701",
    "slug": "openlit-observability",
    "name": "OpenLIT observability",
    "description": "Protected AI observability with OpenLIT and persistent ClickHouse traces.",
    "url": "https://railway.com/deploy/openlit-observability",
    "upstream": {
      "image": "caddy:2.10-alpine@sha256:4c6e91c6ed0e2fa03efd5b44747b625fec79bc9cd06ac5235a779726618e530d"
    }
  },
  "services": [
    {
      "name": "OpenLIT Gateway",
      "source": {
        "image": "caddy:2.10-alpine@sha256:4c6e91c6ed0e2fa03efd5b44747b625fec79bc9cd06ac5235a779726618e530d"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "OpenLIT",
      "source": {
        "image": "ghcr.io/openlit/openlit:1.24.2@sha256:9b85bc3214767603670d3f5c74e1d43ae7e34b292b1f330b99607f7ea2c29230"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/client/data",
      "http": false
    },
    {
      "name": "OpenLIT ClickHouse",
      "source": {
        "image": "clickhouse/clickhouse-server:24.4.1@sha256:2e6587b81a267c6152cf2112c3532516424d3eaa36f1b150d5b8847c0e3d5b01"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/clickhouse",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "OpenLIT Gateway",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "OPENLIT_OTLP_TOKEN",
      "service": "OpenLIT Gateway",
      "description": "Generated bearer token for OTLP/HTTP ingestion.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "OPENLIT_WEB_UPSTREAM",
      "service": "OpenLIT Gateway",
      "description": "Provide a value for OPENLIT_WEB_UPSTREAM.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "OPENLIT_OTLP_UPSTREAM",
      "service": "OpenLIT Gateway",
      "description": "Provide a value for OPENLIT_OTLP_UPSTREAM.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "OPENLIT_GATEWAY_PASSWORD",
      "service": "OpenLIT Gateway",
      "description": "Generated password for browser Basic Auth.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "OPENLIT_GATEWAY_USERNAME",
      "service": "OpenLIT Gateway",
      "description": "Username for browser Basic Auth.",
      "secret": false,
      "strategy": "default",
      "default": "openlit"
    },
    {
      "key": "PORT",
      "service": "OpenLIT",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "API_URL",
      "service": "OpenLIT",
      "description": "Provide a value for API_URL.",
      "secret": false,
      "strategy": "default",
      "default": "http://127.0.0.1:3000"
    },
    {
      "key": "HOSTNAME",
      "service": "OpenLIT",
      "description": "Provide a value for HOSTNAME.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "DOCKER_PORT",
      "service": "OpenLIT",
      "description": "Provide a value for DOCKER_PORT.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "INIT_DB_HOST",
      "service": "OpenLIT",
      "description": "Provide a value for INIT_DB_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "INIT_DB_PORT",
      "service": "OpenLIT",
      "description": "Provide a value for INIT_DB_PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8123"
    },
    {
      "key": "NEXTAUTH_URL",
      "service": "OpenLIT",
      "description": "Provide a value for NEXTAUTH_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "CRON_JOB_SECRET",
      "service": "OpenLIT",
      "description": "Generated token for OpenLIT internal scheduled endpoints.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "OPAMP_CERTS_DIR",
      "service": "OpenLIT",
      "description": "Provide a value for OPAMP_CERTS_DIR.",
      "secret": false,
      "strategy": "default",
      "default": "/app/opamp/certs"
    },
    {
      "key": "OPAMP_LOG_LEVEL",
      "service": "OpenLIT",
      "description": "Provide a value for OPAMP_LOG_LEVEL.",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "OPENLIT_EDITION",
      "service": "OpenLIT",
      "description": "Provide a value for OPENLIT_EDITION.",
      "secret": false,
      "strategy": "default",
      "default": "oss"
    },
    {
      "key": "INIT_DB_DATABASE",
      "service": "OpenLIT",
      "description": "Provide a value for INIT_DB_DATABASE.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "INIT_DB_PASSWORD",
      "service": "OpenLIT",
      "description": "Provide a value for INIT_DB_PASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "INIT_DB_USERNAME",
      "service": "OpenLIT",
      "description": "Provide a value for INIT_DB_USERNAME.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "OPAMP_ENVIRONMENT",
      "service": "OpenLIT",
      "description": "Provide a value for OPAMP_ENVIRONMENT.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "TELEMETRY_ENABLED",
      "service": "OpenLIT",
      "description": "Provide a value for TELEMETRY_ENABLED.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "DEMO_ACCOUNT_EMAIL",
      "service": "OpenLIT",
      "description": "Provide a value for DEMO_ACCOUNT_EMAIL.",
      "secret": false,
      "strategy": "default",
      "default": "user@openlit.io"
    },
    {
      "key": "SQLITE_DATABASE_URL",
      "service": "OpenLIT",
      "description": "Provide a value for SQLITE_DATABASE_URL.",
      "secret": false,
      "strategy": "default",
      "default": "file:/app/client/data/data.db"
    },
    {
      "key": "DEMO_ACCOUNT_PASSWORD",
      "service": "OpenLIT",
      "description": "Provide a value for DEMO_ACCOUNT_PASSWORD.",
      "secret": true,
      "strategy": "default",
      "default": "openlituser"
    },
    {
      "key": "OPAMP_TLS_MAX_VERSION",
      "service": "OpenLIT",
      "description": "Provide a value for OPAMP_TLS_MAX_VERSION.",
      "secret": false,
      "strategy": "default",
      "default": "1.3"
    },
    {
      "key": "OPAMP_TLS_MIN_VERSION",
      "service": "OpenLIT",
      "description": "Provide a value for OPAMP_TLS_MIN_VERSION.",
      "secret": false,
      "strategy": "default",
      "default": "1.2"
    },
    {
      "key": "OPENLIT_COLLECTOR_CONFIG",
      "service": "OpenLIT",
      "description": "Pinned OTLP-to-ClickHouse collector pipeline from the OpenLIT release.",
      "secret": false,
      "strategy": "default",
      "default": "receivers:\n  otlp:\n    protocols:\n      grpc:\n        endpoint: 0.0.0.0:4317\n      http:\n        endpoint: 0.0.0.0:4318\nprocessors:\n  batch: {}\n  memory_limiter:\n    check_interval: 5s\n    limit_mib: 512\n    spike_limit_mib: 128\nexporters:\n  clickhouse:\n    endpoint: tcp://${env:INIT_DB_HOST}:9000?dial_timeout=10s\n    database: ${env:INIT_DB_DATABASE}\n    username: ${env:INIT_DB_USERNAME}\n    password: ${env:INIT_DB_PASSWORD}\n    ttl: 730h\n    logs_table_name: otel_logs\n    traces_table_name: otel_traces\n    timeout: 5s\n    retry_on_failure:\n      enabled: true\n      initial_interval: 5s\n      max_interval: 30s\n      max_elapsed_time: 300s\nservice:\n  pipelines:\n    logs:\n      receivers: [otlp]\n      processors: [batch]\n      exporters: [clickhouse]\n    traces:\n      receivers: [otlp]\n      processors: [memory_limiter, batch]\n      exporters: [clickhouse]\n    metrics:\n      receivers: [otlp]\n      processors: [memory_limiter, batch]\n      exporters: [clickhouse]"
    },
    {
      "key": "OPENLIT_VAULT_ENCRYPTION_KEY",
      "service": "OpenLIT",
      "description": "Stable generated key for encrypted OpenLIT Vault values.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "OPAMP_TLS_REQUIRE_CLIENT_CERT",
      "service": "OpenLIT",
      "description": "Provide a value for OPAMP_TLS_REQUIRE_CLIENT_CERT.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "OPAMP_TLS_INSECURE_SKIP_VERIFY",
      "service": "OpenLIT",
      "description": "Provide a value for OPAMP_TLS_INSECURE_SKIP_VERIFY.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "OPENLIT_CLICKHOUSE_BOOTSTRAP_SCRIPT",
      "service": "OpenLIT",
      "description": "Readiness and database bootstrap executed before OpenLIT migrations.",
      "secret": false,
      "strategy": "default",
      "default": "const e = process.env;\nconst base = \"http://\" + e.INIT_DB_HOST + \":\" + e.INIT_DB_PORT;\nconst headers = {\n  Authorization: \"Basic \" + Buffer.from(e.INIT_DB_USERNAME + \":\" + e.INIT_DB_PASSWORD).toString(\"base64\"),\n};\nasync function main() {\n  let attempt = 0;\n  for (;;) {\n    attempt += 1;\n    let detail = \"unreachable\";\n    try {\n      const response = await fetch(base + \"/ping\", { headers });\n      detail = \"HTTP \" + response.status;\n      if (response.ok) break;\n    } catch (error) {\n      detail = error.cause?.code || error.message;\n    }\n    if (attempt % 10 === 0) console.error(\"Waiting for ClickHouse readiness: \" + detail);\n    await new Promise((resolve) => setTimeout(resolve, 2000));\n  }\n  const response = await fetch(base + \"/\", {\n    method: \"POST\",\n    headers,\n    body: \"CREATE DATABASE IF NOT EXISTS \" + e.INIT_DB_DATABASE,\n  });\n  if (!response.ok) throw new Error(\"ClickHouse database bootstrap failed: \" + response.status);\n}\nmain().catch((error) => {\n  console.error(error.message);\n  process.exit(1);\n});"
    },
    {
      "key": "CLICKHOUSE_USER",
      "service": "OpenLIT ClickHouse",
      "description": "Provide a value for CLICKHOUSE_USER.",
      "secret": false,
      "strategy": "default",
      "default": "openlit"
    },
    {
      "key": "CLICKHOUSE_DATABASE",
      "service": "OpenLIT ClickHouse",
      "description": "Provide a value for CLICKHOUSE_DATABASE.",
      "secret": false,
      "strategy": "default",
      "default": "openlit"
    },
    {
      "key": "CLICKHOUSE_PASSWORD",
      "service": "OpenLIT ClickHouse",
      "description": "Generated password shared only through Railway references.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT",
      "service": "OpenLIT ClickHouse",
      "description": "Provide a value for CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "openlit-observability"
      }
    },
    "cli": "railway deploy --template openlit-observability",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "717508a2-f2a7-4b8b-8737-488d0a698701",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "052e3b75-e7bd-41f6-b349-58e3b2577722": {
                  "icon": null,
                  "name": "OpenLIT Gateway",
                  "deploy": {
                    "startCommand": "/bin/sh -ec 'password_hash=\"$(caddy hash-password --plaintext \"$OPENLIT_GATEWAY_PASSWORD\")\"; printf '\"'\"':8080 {\\n handle /healthz {\\n  rewrite * /login\\n  reverse_proxy %s\\n }\\n @otlp path /v1/traces /v1/logs /v1/metrics\\n handle @otlp {\\n  @unauthorized not header Authorization \"Bearer %s\"\\n  respond @unauthorized 401\\n  reverse_proxy %s\\n }\\n handle {\\n  basic_auth {\\n   %s %s\\n  }\\n  reverse_proxy %s\\n }\\n}\\n'\"'\"' \"$OPENLIT_WEB_UPSTREAM\" \"$OPENLIT_OTLP_TOKEN\" \"$OPENLIT_OTLP_UPSTREAM\" \"$OPENLIT_GATEWAY_USERNAME\" \"$password_hash\" \"$OPENLIT_WEB_UPSTREAM\" >/tmp/Caddyfile; exec caddy run --config /tmp/Caddyfile --adapter caddyfile'",
                    "healthcheckPath": "/healthz",
                    "preDeployCommand": null,
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "caddy:2.10-alpine@sha256:4c6e91c6ed0e2fa03efd5b44747b625fec79bc9cd06ac5235a779726618e530d"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "8080"
                    },
                    "OPENLIT_OTLP_TOKEN": {
                      "isOptional": false,
                      "description": "Generated bearer token for OTLP/HTTP ingestion.",
                      "defaultValue": "{{OPENLIT_OTLP_TOKEN}}"
                    },
                    "OPENLIT_WEB_UPSTREAM": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "http://${{OpenLIT.RAILWAY_PRIVATE_DOMAIN}}:3000"
                    },
                    "OPENLIT_OTLP_UPSTREAM": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "http://${{OpenLIT.RAILWAY_PRIVATE_DOMAIN}}:4318"
                    },
                    "OPENLIT_GATEWAY_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated password for browser Basic Auth.",
                      "defaultValue": "{{OPENLIT_GATEWAY_PASSWORD}}"
                    },
                    "OPENLIT_GATEWAY_USERNAME": {
                      "isOptional": false,
                      "description": "Username for browser Basic Auth.",
                      "defaultValue": "openlit"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {
                        "port": 8080
                      }
                    }
                  }
                },
                "208a8100-af71-4c66-8169-6b17effc1168": {
                  "icon": null,
                  "name": "OpenLIT",
                  "deploy": {
                    "startCommand": "/bin/bash -ec 'node -e \"$OPENLIT_CLICKHOUSE_BOOTSTRAP_SCRIPT\"; mkdir -p /etc/otel; printf \"%s\\n\" \"$OPENLIT_COLLECTOR_CONFIG\" > /etc/otel/otel-collector-config.yaml; exec /app/client/scripts/entrypoint.sh'",
                    "healthcheckPath": "/login",
                    "preDeployCommand": null,
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/openlit/openlit:1.24.2@sha256:9b85bc3214767603670d3f5c74e1d43ae7e34b292b1f330b99607f7ea2c29230"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "3000"
                    },
                    "API_URL": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "http://127.0.0.1:3000"
                    },
                    "HOSTNAME": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "0.0.0.0"
                    },
                    "DOCKER_PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "3000"
                    },
                    "INIT_DB_HOST": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "${{OpenLIT ClickHouse.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "INIT_DB_PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "8123"
                    },
                    "NEXTAUTH_URL": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "https://${{OpenLIT Gateway.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "CRON_JOB_SECRET": {
                      "isOptional": false,
                      "description": "Generated token for OpenLIT internal scheduled endpoints.",
                      "defaultValue": "{{CRON_JOB_SECRET}}"
                    },
                    "OPAMP_CERTS_DIR": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "/app/opamp/certs"
                    },
                    "OPAMP_LOG_LEVEL": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "info"
                    },
                    "OPENLIT_EDITION": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "oss"
                    },
                    "INIT_DB_DATABASE": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "${{OpenLIT ClickHouse.CLICKHOUSE_DATABASE}}"
                    },
                    "INIT_DB_PASSWORD": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "${{OpenLIT ClickHouse.CLICKHOUSE_PASSWORD}}"
                    },
                    "INIT_DB_USERNAME": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "${{OpenLIT ClickHouse.CLICKHOUSE_USER}}"
                    },
                    "OPAMP_ENVIRONMENT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "production"
                    },
                    "TELEMETRY_ENABLED": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "false"
                    },
                    "DEMO_ACCOUNT_EMAIL": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "user@openlit.io"
                    },
                    "SQLITE_DATABASE_URL": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "file:/app/client/data/data.db"
                    },
                    "DEMO_ACCOUNT_PASSWORD": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "openlituser"
                    },
                    "OPAMP_TLS_MAX_VERSION": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "1.3"
                    },
                    "OPAMP_TLS_MIN_VERSION": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "1.2"
                    },
                    "OPENLIT_COLLECTOR_CONFIG": {
                      "isOptional": false,
                      "description": "Pinned OTLP-to-ClickHouse collector pipeline from the OpenLIT release.",
                      "defaultValue": "receivers:\n  otlp:\n    protocols:\n      grpc:\n        endpoint: 0.0.0.0:4317\n      http:\n        endpoint: 0.0.0.0:4318\nprocessors:\n  batch: {}\n  memory_limiter:\n    check_interval: 5s\n    limit_mib: 512\n    spike_limit_mib: 128\nexporters:\n  clickhouse:\n    endpoint: tcp://${env:INIT_DB_HOST}:9000?dial_timeout=10s\n    database: ${env:INIT_DB_DATABASE}\n    username: ${env:INIT_DB_USERNAME}\n    password: ${env:INIT_DB_PASSWORD}\n    ttl: 730h\n    logs_table_name: otel_logs\n    traces_table_name: otel_traces\n    timeout: 5s\n    retry_on_failure:\n      enabled: true\n      initial_interval: 5s\n      max_interval: 30s\n      max_elapsed_time: 300s\nservice:\n  pipelines:\n    logs:\n      receivers: [otlp]\n      processors: [batch]\n      exporters: [clickhouse]\n    traces:\n      receivers: [otlp]\n      processors: [memory_limiter, batch]\n      exporters: [clickhouse]\n    metrics:\n      receivers: [otlp]\n      processors: [memory_limiter, batch]\n      exporters: [clickhouse]"
                    },
                    "OPENLIT_VAULT_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Stable generated key for encrypted OpenLIT Vault values.",
                      "defaultValue": "{{OPENLIT_VAULT_ENCRYPTION_KEY}}"
                    },
                    "OPAMP_TLS_REQUIRE_CLIENT_CERT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "true"
                    },
                    "OPAMP_TLS_INSECURE_SKIP_VERIFY": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "false"
                    },
                    "OPENLIT_CLICKHOUSE_BOOTSTRAP_SCRIPT": {
                      "isOptional": false,
                      "description": "Readiness and database bootstrap executed before OpenLIT migrations.",
                      "defaultValue": "const e = process.env;\nconst base = \"http://\" + e.INIT_DB_HOST + \":\" + e.INIT_DB_PORT;\nconst headers = {\n  Authorization: \"Basic \" + Buffer.from(e.INIT_DB_USERNAME + \":\" + e.INIT_DB_PASSWORD).toString(\"base64\"),\n};\nasync function main() {\n  let attempt = 0;\n  for (;;) {\n    attempt += 1;\n    let detail = \"unreachable\";\n    try {\n      const response = await fetch(base + \"/ping\", { headers });\n      detail = \"HTTP \" + response.status;\n      if (response.ok) break;\n    } catch (error) {\n      detail = error.cause?.code || error.message;\n    }\n    if (attempt % 10 === 0) console.error(\"Waiting for ClickHouse readiness: \" + detail);\n    await new Promise((resolve) => setTimeout(resolve, 2000));\n  }\n  const response = await fetch(base + \"/\", {\n    method: \"POST\",\n    headers,\n    body: \"CREATE DATABASE IF NOT EXISTS \" + e.INIT_DB_DATABASE,\n  });\n  if (!response.ok) throw new Error(\"ClickHouse database bootstrap failed: \" + response.status);\n}\nmain().catch((error) => {\n  console.error(error.message);\n  process.exit(1);\n});"
                    }
                  },
                  "volumeMounts": {
                    "208a8100-af71-4c66-8169-6b17effc1168": {
                      "sizeMB": 5000,
                      "mountPath": "/app/client/data"
                    }
                  }
                },
                "8b13f2cc-8c51-4f50-befc-3fcb30397792": {
                  "icon": null,
                  "name": "OpenLIT ClickHouse",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "preDeployCommand": null,
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": null,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "clickhouse/clickhouse-server:24.4.1@sha256:2e6587b81a267c6152cf2112c3532516424d3eaa36f1b150d5b8847c0e3d5b01"
                  },
                  "variables": {
                    "CLICKHOUSE_USER": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "openlit"
                    },
                    "CLICKHOUSE_DATABASE": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "openlit"
                    },
                    "CLICKHOUSE_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated password shared only through Railway references.",
                      "defaultValue": "{{CLICKHOUSE_PASSWORD}}"
                    },
                    "CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "1"
                    }
                  },
                  "volumeMounts": {
                    "8b13f2cc-8c51-4f50-befc-3fcb30397792": {
                      "sizeMB": 5000,
                      "mountPath": "/var/lib/clickhouse"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "OpenLIT Gateway",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-07T00:08:10.466Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_48e1a6218797437c810b",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 57,
    "typical_build_seconds": 0,
    "typical_start_seconds": 40,
    "slowest_service": "OpenLIT Gateway"
  }
}
