{
  "manifest_version": "1.0.0",
  "template": {
    "id": "c98a3ccb-323a-48a7-8a1d-d35b4374ca95",
    "slug": "laminar-observability",
    "name": "Laminar | Open-Source Observability & Evals for AI Agents",
    "description": "Tracing, evals and SQL over agent traces, on ClickHouse, self-hosted",
    "url": "https://railway.com/deploy/laminar-observability",
    "upstream": {
      "image": "caddy:2.11.7-alpine"
    }
  },
  "services": [
    {
      "name": "Frontend",
      "source": {
        "image": "ghcr.io/lmnr-ai/frontend:v0.3.0"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "AppServer",
      "source": {
        "image": "ghcr.io/lmnr-ai/app-server:v0.3.0"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Postgres",
      "source": {
        "image": "postgres:16.15"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "ClickHouse",
      "source": {
        "image": "clickhouse/clickhouse-server:26.5.7.64"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/clickhouse",
      "http": false
    },
    {
      "name": "Laminar",
      "source": {
        "image": "caddy:2.11.7-alpine"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Frontend",
      "description": "Port the dashboard listens on - leave as is",
      "secret": false,
      "strategy": "default",
      "default": "5667"
    },
    {
      "key": "HOSTNAME",
      "service": "Frontend",
      "description": "Listen on IPv6 and IPv4 so Railway's private network can reach it",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "BACKEND_URL",
      "service": "Frontend",
      "description": "App server HTTP API on the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ENVIRONMENT",
      "service": "Frontend",
      "description": "Self-hosted mode without RabbitMQ; also runs the Postgres and ClickHouse migrations on boot",
      "secret": false,
      "strategy": "default",
      "default": "LITE"
    },
    {
      "key": "DATABASE_URL",
      "service": "Frontend",
      "description": "Postgres on the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "NEXTAUTH_URL",
      "service": "Frontend",
      "description": "Public URL of the dashboard - set it to your custom domain after adding one",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "BACKEND_RT_URL",
      "service": "Frontend",
      "description": "App server realtime (live trace updates) on the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "CLICKHOUSE_URL",
      "service": "Frontend",
      "description": "ClickHouse HTTP interface on the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "AEAD_SECRET_KEY",
      "service": "Frontend",
      "description": "Auto-generated 32-byte key (64 hex characters) that encrypts stored provider API keys - never change it after the first boot",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "CLICKHOUSE_USER",
      "service": "Frontend",
      "description": "ClickHouse user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXTAUTH_SECRET",
      "service": "Frontend",
      "description": "Auto-generated secret that signs sessions and invitation links",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "NEXT_PUBLIC_URL",
      "service": "Frontend",
      "description": "Public URL of the dashboard - keep equal to NEXTAUTH_URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "CLICKHOUSE_RO_USER",
      "service": "Frontend",
      "description": "User for the SQL editor's queries (same user, as in upstream's compose)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CLICKHOUSE_PASSWORD",
      "service": "Frontend",
      "description": "ClickHouse password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PUBLIC_API_BASE_URL",
      "service": "Frontend",
      "description": "API URL shown in the dashboard (dataset downloads)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "CLICKHOUSE_RO_PASSWORD",
      "service": "Frontend",
      "description": "Password for the SQL editor's user",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "Frontend",
      "description": "The first boot runs 70+ ClickHouse migrations (about 5 minutes in testing) before the health check can pass",
      "secret": false,
      "strategy": "default",
      "default": "900"
    },
    {
      "key": "PORT",
      "service": "AppServer",
      "description": "HTTP API port (SDK, OTLP/HTTP, dashboard backend) - leave as is",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "GRPC_PORT",
      "service": "AppServer",
      "description": "OTLP/gRPC port, private network only",
      "secret": false,
      "strategy": "default",
      "default": "8001"
    },
    {
      "key": "ENVIRONMENT",
      "service": "AppServer",
      "description": "Self-hosted mode without RabbitMQ",
      "secret": false,
      "strategy": "default",
      "default": "LITE"
    },
    {
      "key": "DATABASE_URL",
      "service": "AppServer",
      "description": "Postgres on the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "CLICKHOUSE_URL",
      "service": "AppServer",
      "description": "ClickHouse HTTP interface on the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "AEAD_SECRET_KEY",
      "service": "AppServer",
      "description": "Same encryption key as the dashboard",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CLICKHOUSE_USER",
      "service": "AppServer",
      "description": "ClickHouse user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QUICKWIT_ENABLED",
      "service": "AppServer",
      "description": "Full-text search needs Quickwit, which this template leaves out (see README)",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "NEXT_INTERNAL_URL",
      "service": "AppServer",
      "description": "Dashboard on the private network; CLI tokens are verified against its keys (unset, the app server would trust laminar.sh's keys)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "CLICKHOUSE_RO_USER",
      "service": "AppServer",
      "description": "User for the SQL editor's queries (same user, as in upstream's compose)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CLICKHOUSE_PASSWORD",
      "service": "AppServer",
      "description": "ClickHouse password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CLICKHOUSE_RO_PASSWORD",
      "service": "AppServer",
      "description": "Password for the SQL editor's user",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "AppServer",
      "description": "Time for the app server to connect to its databases",
      "secret": false,
      "strategy": "default",
      "default": "300"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Data subdirectory - keeps Postgres happy on Railway volumes",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database name",
      "secret": false,
      "strategy": "default",
      "default": "laminar"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Database user",
      "secret": false,
      "strategy": "default",
      "default": "laminar"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Auto-generated database password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Time for Postgres to shut down cleanly on redeploy",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "MALLOC_CONF",
      "service": "ClickHouse",
      "description": "Keeps jemalloc off transparent huge pages; without it idle ClickHouse memory creeps up on Railway",
      "secret": false,
      "strategy": "default",
      "default": "thp:never"
    },
    {
      "key": "CLICKHOUSE_USER",
      "service": "ClickHouse",
      "description": "ClickHouse user",
      "secret": false,
      "strategy": "default",
      "default": "laminar"
    },
    {
      "key": "CLICKHOUSE_PASSWORD",
      "service": "ClickHouse",
      "description": "Auto-generated ClickHouse password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "ClickHouse",
      "description": "Time for ClickHouse to flush and shut down cleanly on redeploy",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "PORT",
      "service": "Laminar",
      "description": "Port Railway routes to - leave as is",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "FRONTEND_HOST",
      "service": "Laminar",
      "description": "Dashboard on the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "APP_SERVER_HOST",
      "service": "Laminar",
      "description": "App server on the private network (receives /v1/* SDK and OTLP traffic)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "LAMINAR_PASSWORD",
      "service": "Laminar",
      "description": "Auto-generated password for the dashboard's login prompt",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "LAMINAR_USERNAME",
      "service": "Laminar",
      "description": "Username for the dashboard's login prompt",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "laminar-observability"
      }
    },
    "cli": "railway deploy --template laminar-observability",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "c98a3ccb-323a-48a7-8a1d-d35b4374ca95",
            "serializedConfig": {
              "services": {
                "3a16b4a0-0dd8-44bd-a5a1-718b381f45a8": {
                  "icon": "https://raw.githubusercontent.com/nomideusz/laminar-railway/main/icon.svg",
                  "name": "Frontend",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/sign-in",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/lmnr-ai/frontend:v0.3.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the dashboard listens on - leave as is",
                      "defaultValue": "5667"
                    },
                    "HOSTNAME": {
                      "isOptional": false,
                      "description": "Listen on IPv6 and IPv4 so Railway's private network can reach it",
                      "defaultValue": "::"
                    },
                    "BACKEND_URL": {
                      "isOptional": false,
                      "description": "App server HTTP API on the private network",
                      "defaultValue": "http://${{AppServer.RAILWAY_PRIVATE_DOMAIN}}:8000"
                    },
                    "ENVIRONMENT": {
                      "isOptional": false,
                      "description": "Self-hosted mode without RabbitMQ; also runs the Postgres and ClickHouse migrations on boot",
                      "defaultValue": "LITE"
                    },
                    "LLM_API_KEY": {
                      "isOptional": true,
                      "description": "Optional: API key for LLM_PROVIDER",
                      "defaultValue": ""
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres on the private network",
                      "defaultValue": "postgres://${{Postgres.POSTGRES_USER}}:${{Postgres.POSTGRES_PASSWORD}}@${{Postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/${{Postgres.POSTGRES_DB}}"
                    },
                    "LLM_PROVIDER": {
                      "isOptional": true,
                      "description": "Optional: openai, gemini, bedrock, azure_chat_completions, ... for the AI features (chat with a trace, SQL with AI)",
                      "defaultValue": ""
                    },
                    "NEXTAUTH_URL": {
                      "isOptional": false,
                      "description": "Public URL of the dashboard - set it to your custom domain after adding one",
                      "defaultValue": "https://${{Laminar.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "BACKEND_RT_URL": {
                      "isOptional": false,
                      "description": "App server realtime (live trace updates) on the private network",
                      "defaultValue": "http://${{AppServer.RAILWAY_PRIVATE_DOMAIN}}:8002"
                    },
                    "CLICKHOUSE_URL": {
                      "isOptional": false,
                      "description": "ClickHouse HTTP interface on the private network",
                      "defaultValue": "http://${{ClickHouse.RAILWAY_PRIVATE_DOMAIN}}:8123"
                    },
                    "AEAD_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Auto-generated 32-byte key (64 hex characters) that encrypts stored provider API keys - never change it after the first boot",
                      "defaultValue": "{{AEAD_SECRET_KEY}}"
                    },
                    "CLICKHOUSE_USER": {
                      "isOptional": false,
                      "description": "ClickHouse user",
                      "defaultValue": "${{ClickHouse.CLICKHOUSE_USER}}"
                    },
                    "NEXTAUTH_SECRET": {
                      "isOptional": false,
                      "description": "Auto-generated secret that signs sessions and invitation links",
                      "defaultValue": "{{NEXTAUTH_SECRET}}"
                    },
                    "NEXT_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public URL of the dashboard - keep equal to NEXTAUTH_URL",
                      "defaultValue": "https://${{Laminar.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "CLICKHOUSE_RO_USER": {
                      "isOptional": false,
                      "description": "User for the SQL editor's queries (same user, as in upstream's compose)",
                      "defaultValue": "${{ClickHouse.CLICKHOUSE_USER}}"
                    },
                    "CLICKHOUSE_PASSWORD": {
                      "isOptional": false,
                      "description": "ClickHouse password",
                      "defaultValue": "${{ClickHouse.CLICKHOUSE_PASSWORD}}"
                    },
                    "PUBLIC_API_BASE_URL": {
                      "isOptional": false,
                      "description": "API URL shown in the dashboard (dataset downloads)",
                      "defaultValue": "https://${{Laminar.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "CLICKHOUSE_RO_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the SQL editor's user",
                      "defaultValue": "${{ClickHouse.CLICKHOUSE_PASSWORD}}"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "The first boot runs 70+ ClickHouse migrations (about 5 minutes in testing) before the health check can pass",
                      "defaultValue": "900"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {}
                },
                "86623b95-8798-4f36-bf4f-16a408fc035d": {
                  "icon": "https://raw.githubusercontent.com/nomideusz/laminar-railway/main/icon.svg",
                  "name": "AppServer",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/lmnr-ai/app-server:v0.3.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP API port (SDK, OTLP/HTTP, dashboard backend) - leave as is",
                      "defaultValue": "8000"
                    },
                    "GRPC_PORT": {
                      "isOptional": false,
                      "description": "OTLP/gRPC port, private network only",
                      "defaultValue": "8001"
                    },
                    "ENVIRONMENT": {
                      "isOptional": false,
                      "description": "Self-hosted mode without RabbitMQ",
                      "defaultValue": "LITE"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres on the private network",
                      "defaultValue": "postgres://${{Postgres.POSTGRES_USER}}:${{Postgres.POSTGRES_PASSWORD}}@${{Postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/${{Postgres.POSTGRES_DB}}"
                    },
                    "CLICKHOUSE_URL": {
                      "isOptional": false,
                      "description": "ClickHouse HTTP interface on the private network",
                      "defaultValue": "http://${{ClickHouse.RAILWAY_PRIVATE_DOMAIN}}:8123"
                    },
                    "AEAD_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Same encryption key as the dashboard",
                      "defaultValue": "${{Frontend.AEAD_SECRET_KEY}}"
                    },
                    "CLICKHOUSE_USER": {
                      "isOptional": false,
                      "description": "ClickHouse user",
                      "defaultValue": "${{ClickHouse.CLICKHOUSE_USER}}"
                    },
                    "QUICKWIT_ENABLED": {
                      "isOptional": false,
                      "description": "Full-text search needs Quickwit, which this template leaves out (see README)",
                      "defaultValue": "false"
                    },
                    "NEXT_INTERNAL_URL": {
                      "isOptional": false,
                      "description": "Dashboard on the private network; CLI tokens are verified against its keys (unset, the app server would trust laminar.sh's keys)",
                      "defaultValue": "http://${{Frontend.RAILWAY_PRIVATE_DOMAIN}}:5667"
                    },
                    "CLICKHOUSE_RO_USER": {
                      "isOptional": false,
                      "description": "User for the SQL editor's queries (same user, as in upstream's compose)",
                      "defaultValue": "${{ClickHouse.CLICKHOUSE_USER}}"
                    },
                    "CLICKHOUSE_PASSWORD": {
                      "isOptional": false,
                      "description": "ClickHouse password",
                      "defaultValue": "${{ClickHouse.CLICKHOUSE_PASSWORD}}"
                    },
                    "CLICKHOUSE_RO_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the SQL editor's user",
                      "defaultValue": "${{ClickHouse.CLICKHOUSE_PASSWORD}}"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "Time for the app server to connect to its databases",
                      "defaultValue": "300"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {}
                },
                "c066e99a-6fa8-4893-b846-12b870a2d4c5": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "postgres:16.15"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Data subdirectory - keeps Postgres happy on Railway volumes",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database name",
                      "defaultValue": "laminar"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Database user",
                      "defaultValue": "laminar"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated database password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Time for Postgres to shut down cleanly on redeploy",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "9781f5a4-d887-463e-96f2-7acafc2478f3": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "e4ca02f0-7935-40bc-b9f5-203f163825c0": {
                  "icon": "https://devicons.railway.app/i/clickhouse.svg",
                  "name": "ClickHouse",
                  "build": {},
                  "deploy": {
                    "startCommand": "/bin/sh -c 'printf \"<clickhouse><profiles><default><date_time_input_format>best_effort</date_time_input_format></default></profiles></clickhouse>\" > /etc/clickhouse-server/users.d/laminar.xml && R=; for t in trace_log text_log part_log metric_log asynchronous_metric_log background_schedule_pool_log query_metric_log query_thread_log query_views_log session_log crash_log opentelemetry_span_log zookeeper_log blob_storage_log processors_profile_log asynchronous_insert_log error_log latency_log; do R=\"$R<$t remove=\\\"1\\\"/>\"; done && printf \"<clickhouse><logger><level>warning</level><console>1</console><size>10M</size><count>1</count></logger>%s<query_log><ttl>event_date + INTERVAL 3 DAY DELETE</ttl></query_log></clickhouse>\" \"$R\" > /etc/clickhouse-server/config.d/laminar.xml && exec /entrypoint.sh'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "clickhouse/clickhouse-server:26.5.7.64"
                  },
                  "variables": {
                    "MALLOC_CONF": {
                      "isOptional": false,
                      "description": "Keeps jemalloc off transparent huge pages; without it idle ClickHouse memory creeps up on Railway",
                      "defaultValue": "thp:never"
                    },
                    "CLICKHOUSE_USER": {
                      "isOptional": false,
                      "description": "ClickHouse user",
                      "defaultValue": "laminar"
                    },
                    "CLICKHOUSE_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated ClickHouse password",
                      "defaultValue": "{{CLICKHOUSE_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Time for ClickHouse to flush and shut down cleanly on redeploy",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "6cbd5ae2-2cfd-4448-99e8-abd5513d6ac6": {
                      "mountPath": "/var/lib/clickhouse"
                    }
                  }
                },
                "f1fa9dfd-42d8-48fb-97ab-14eff42066b4": {
                  "icon": "https://raw.githubusercontent.com/nomideusz/laminar-railway/main/icon.svg",
                  "name": "Laminar",
                  "build": {},
                  "deploy": {
                    "startCommand": "/bin/sh -c 'HASH=$(caddy hash-password --plaintext \"$LAMINAR_PASSWORD\") && printf \":%s {\\n handle /healthz {\\n  respond 200\\n }\\n handle /v1/* {\\n  reverse_proxy %s:8000\\n }\\n handle {\\n  basic_auth {\\n   %s %s\\n  }\\n  reverse_proxy %s:5667 {\\n   header_up -Authorization\\n  }\\n }\\n}\\n\" \"$PORT\" \"$APP_SERVER_HOST\" \"$LAMINAR_USERNAME\" \"$HASH\" \"$FRONTEND_HOST\" > /etc/caddy/Caddyfile && exec caddy run --config /etc/caddy/Caddyfile --adapter caddyfile'",
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "caddy:2.11.7-alpine"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway routes to - leave as is",
                      "defaultValue": "8080"
                    },
                    "FRONTEND_HOST": {
                      "isOptional": false,
                      "description": "Dashboard on the private network",
                      "defaultValue": "${{Frontend.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "APP_SERVER_HOST": {
                      "isOptional": false,
                      "description": "App server on the private network (receives /v1/* SDK and OTLP traffic)",
                      "defaultValue": "${{AppServer.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "LAMINAR_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated password for the dashboard's login prompt",
                      "defaultValue": "{{LAMINAR_PASSWORD}}"
                    },
                    "LAMINAR_USERNAME": {
                      "isOptional": false,
                      "description": "Username for the dashboard's login prompt",
                      "defaultValue": "admin"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {}
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Laminar",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 5,
    "needs_volume": true
  },
  "generated_at": "2026-10-14T10:14:43.564Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-12T12:35:14.421Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_bab6844ee3594483b3bc",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 403,
    "typical_build_seconds": 0,
    "typical_start_seconds": 335,
    "slowest_service": "Frontend"
  }
}
