{
  "manifest_version": "1.0.0",
  "template": {
    "id": "639a84b1-6681-4ae0-8b2e-c802fa5146e8",
    "slug": "opik-llm",
    "name": "Opik | Open-Source LLM Evaluation, Tracing & Observability",
    "description": "Trace, evaluate and monitor LLM apps and agents, behind basic auth",
    "url": "https://railway.com/deploy/opik-llm",
    "upstream": {
      "repo_url": "https://github.com/nomideusz/opik-railway"
    }
  },
  "services": [
    {
      "name": "MySQL",
      "source": {
        "image": "mysql:8.4.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    },
    {
      "name": "MinIO",
      "source": {
        "image": "pgsty/silo:RELEASE.2026-08-06T00-00-00Z"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.10.2-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "Opik",
      "source": {
        "repo": "https://github.com/nomideusz/opik-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "ClickHouse",
      "source": {
        "repo": "https://github.com/nomideusz/opik-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/clickhouse",
      "http": false
    },
    {
      "name": "Backend",
      "source": {
        "image": "ghcr.io/comet-ml/opik/opik-backend:2.2.96"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "MYSQL_USER",
      "service": "MySQL",
      "description": "Application user created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "opik"
    },
    {
      "key": "MYSQL_DATABASE",
      "service": "MySQL",
      "description": "Database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "opik"
    },
    {
      "key": "MYSQL_PASSWORD",
      "service": "MySQL",
      "description": "Auto-generated application password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MYSQL_ROOT_PASSWORD",
      "service": "MySQL",
      "description": "Auto-generated MySQL root password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "MySQL",
      "description": "Time for MySQL to shut down cleanly on redeploy",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "MINIO_BUCKET",
      "service": "MinIO",
      "description": "Bucket for trace attachments, created on boot",
      "secret": false,
      "strategy": "default",
      "default": "opik"
    },
    {
      "key": "MINIO_ROOT_USER",
      "service": "MinIO",
      "description": "MinIO access key",
      "secret": false,
      "strategy": "default",
      "default": "opik"
    },
    {
      "key": "MINIO_ROOT_PASSWORD",
      "service": "MinIO",
      "description": "Auto-generated MinIO secret key",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Auto-generated Redis password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "Opik",
      "description": "Port nginx listens on - leave as is",
      "secret": false,
      "strategy": "default",
      "default": "5173"
    },
    {
      "key": "NGINX_PORT",
      "service": "Opik",
      "description": "Port nginx listens on - must match PORT",
      "secret": false,
      "strategy": "default",
      "default": "5173"
    },
    {
      "key": "OPIK_AUTH_USER",
      "service": "Opik",
      "description": "Basic-auth username for the Opik UI. Self-hosted Opik has no login of its own, so this gate is the only thing between the internet and your traces",
      "secret": false,
      "strategy": "default",
      "default": "opik"
    },
    {
      "key": "OPIK_AUTH_PASSWORD",
      "service": "Opik",
      "description": "Basic-auth password for the UI, and the API key for the SDK (OPIK_API_KEY=<this value>). Emptying it makes Opik open to anyone with the URL",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "OPIK_BACKEND_ADDRESS",
      "service": "Opik",
      "description": "Backend API on the private network; nginx re-resolves it while running so backend redeploys never leave a stale address",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "CLICKHOUSE_DB",
      "service": "ClickHouse",
      "description": "ClickHouse database",
      "secret": false,
      "strategy": "default",
      "default": "opik"
    },
    {
      "key": "CLICKHOUSE_USER",
      "service": "ClickHouse",
      "description": "ClickHouse user",
      "secret": false,
      "strategy": "default",
      "default": "opik"
    },
    {
      "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": "Backend",
      "description": "Port the Opik API listens on - leave as is",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "S3_URL",
      "service": "Backend",
      "description": "MinIO on the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "IS_MINIO",
      "service": "Backend",
      "description": "Attachments go through the backend to the S3-compatible MinIO service, so object storage never needs a public URL",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "JAVA_OPTS",
      "service": "Backend",
      "description": "JVM flags. -Xmx caps the heap (upstream sizes it from the container limit, which on Railway is the whole plan); raise it for heavy ingestion. The Liquibase flag is required",
      "secret": false,
      "strategy": "default",
      "default": "-Dliquibase.propertySubstitutionEnabled=true -XX:+UseG1GC -Xmx768m"
    },
    {
      "key": "REDIS_URL",
      "service": "Backend",
      "description": "Redis (locks, caches, online-scoring streams) on the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "S3_BUCKET",
      "service": "Backend",
      "description": "Attachment bucket (created by the MinIO service on boot)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STATE_DB_URL",
      "service": "Backend",
      "description": "MySQL (projects, datasets, prompts, experiments) on the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "STATE_DB_PASS",
      "service": "Backend",
      "description": "MySQL password",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STATE_DB_USER",
      "service": "Backend",
      "description": "MySQL user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ANALYTICS_DB_HOST",
      "service": "Backend",
      "description": "ClickHouse (traces, spans, feedback scores) on the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ANALYTICS_DB_PASS",
      "service": "Backend",
      "description": "ClickHouse password",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ANALYTICS_DB_PORT",
      "service": "Backend",
      "description": "ClickHouse HTTP port",
      "secret": false,
      "strategy": "default",
      "default": "8123"
    },
    {
      "key": "AWS_ACCESS_KEY_ID",
      "service": "Backend",
      "description": "MinIO access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STATE_DB_PROTOCOL",
      "service": "Backend",
      "description": "JDBC scheme for the state database",
      "secret": false,
      "strategy": "default",
      "default": "jdbc:mysql://"
    },
    {
      "key": "OPIK_ENCRYPTION_KEY",
      "service": "Backend",
      "description": "Encrypts the LLM provider API keys you save in Opik (AES, must be 16, 24 or 32 characters). Upstream's default is public - never change it after saving keys",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ANALYTICS_DB_PROTOCOL",
      "service": "Backend",
      "description": "ClickHouse client protocol",
      "secret": false,
      "strategy": "default",
      "default": "HTTP"
    },
    {
      "key": "ANALYTICS_DB_USERNAME",
      "service": "Backend",
      "description": "ClickHouse user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AWS_SECRET_ACCESS_KEY",
      "service": "Backend",
      "description": "MinIO secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STATE_DB_DATABASE_NAME",
      "service": "Backend",
      "description": "MySQL database",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TOGGLE_DEMO_DATA_ENABLED",
      "service": "Backend",
      "description": "The demo-data generator also runs in python-backend; off so the UI does not wait for it",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "OPIK_USAGE_REPORT_ENABLED",
      "service": "Backend",
      "description": "Anonymous usage reports to Comet (upstream default is on)",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "ANALYTICS_DB_DATABASE_NAME",
      "service": "Backend",
      "description": "ClickHouse database",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ANALYTICS_DB_MIGRATIONS_URL",
      "service": "Backend",
      "description": "ClickHouse for the schema migrations that run on every boot",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ANALYTICS_DB_MIGRATIONS_PASS",
      "service": "Backend",
      "description": "ClickHouse password",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ANALYTICS_DB_MIGRATIONS_USER",
      "service": "Backend",
      "description": "ClickHouse user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TOGGLE_WELCOME_WIZARD_ENABLED",
      "service": "Backend",
      "description": "Show the first-run welcome dialog",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "Backend",
      "description": "Every boot runs the MySQL and ClickHouse migrations before the health check can pass",
      "secret": false,
      "strategy": "default",
      "default": "600"
    },
    {
      "key": "TOGGLE_PYTHON_EVALUATOR_ENABLED",
      "service": "Backend",
      "description": "Python code metrics need upstream's separate python-backend service, which this template leaves out to save RAM. LLM-as-a-judge metrics work",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LLM_PROVIDER_TOKEN_AUTH_DESTINATION_GUARD",
      "service": "Backend",
      "description": "Lets custom LLM providers point at private gateways, as in upstream's self-host compose",
      "secret": true,
      "strategy": "default",
      "default": "relaxed"
    },
    {
      "key": "TOGGLE_TRACE_THREAD_PYTHON_EVALUATOR_ENABLED",
      "service": "Backend",
      "description": "Same as TOGGLE_PYTHON_EVALUATOR_ENABLED, for thread-level rules",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "TOGGLE_SPAN_USER_DEFINED_METRIC_PYTHON_ENABLED",
      "service": "Backend",
      "description": "Same as TOGGLE_PYTHON_EVALUATOR_ENABLED, for span-level rules",
      "secret": false,
      "strategy": "default",
      "default": "false"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "opik-llm"
      }
    },
    "cli": "railway deploy --template opik-llm",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "639a84b1-6681-4ae0-8b2e-c802fa5146e8",
            "serializedConfig": {
              "services": {
                "69b997af-d232-44bc-a19e-c39359f2126d": {
                  "icon": "https://devicons.railway.app/i/mysql.svg",
                  "name": "MySQL",
                  "build": {},
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mysqld --datadir=/var/lib/mysql/data --skip-log-bin --performance-schema=OFF",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mysql:8.4.2"
                  },
                  "variables": {
                    "MYSQL_USER": {
                      "isOptional": false,
                      "description": "Application user created on first boot",
                      "defaultValue": "opik"
                    },
                    "MYSQL_DATABASE": {
                      "isOptional": false,
                      "description": "Database created on first boot",
                      "defaultValue": "opik"
                    },
                    "MYSQL_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated application password",
                      "defaultValue": "{{MYSQL_PASSWORD}}"
                    },
                    "MYSQL_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated MySQL root password",
                      "defaultValue": "{{MYSQL_ROOT_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Time for MySQL to shut down cleanly on redeploy",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "493d2ace-ff5e-4120-9cd4-1b143c466173": {
                      "mountPath": "/var/lib/mysql"
                    }
                  }
                },
                "cfbdcf08-6782-4b3a-b1f7-bf8e552c7e40": {
                  "icon": "https://devicons.railway.app/i/minio.svg",
                  "name": "MinIO",
                  "build": {},
                  "deploy": {
                    "startCommand": "/bin/bash -c \"(until mc alias set local http://127.0.0.1:9000 $MINIO_ROOT_USER $MINIO_ROOT_PASSWORD >/dev/null 2>&1; do sleep 1; done; mc mb --ignore-existing local/$MINIO_BUCKET) & exec /usr/bin/docker-entrypoint.sh server /data --address :9000 --console-address :9001\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "pgsty/silo:RELEASE.2026-08-06T00-00-00Z"
                  },
                  "variables": {
                    "MINIO_BUCKET": {
                      "isOptional": false,
                      "description": "Bucket for trace attachments, created on boot",
                      "defaultValue": "opik"
                    },
                    "MINIO_ROOT_USER": {
                      "isOptional": false,
                      "description": "MinIO access key",
                      "defaultValue": "opik"
                    },
                    "MINIO_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated MinIO secret key",
                      "defaultValue": "{{MINIO_ROOT_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "f46138ed-c86d-4002-9579-5ffd8cb0d23e": {
                      "mountPath": "/data"
                    }
                  }
                },
                "dd796e09-a162-4552-9f01-515ebd975ff4": {
                  "icon": "https://devicons.railway.app/i/redis.svg",
                  "name": "Redis",
                  "build": {},
                  "deploy": {
                    "startCommand": "/bin/sh -c \"chown -R redis:redis /data && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --appendonly yes\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.10.2-alpine"
                  },
                  "variables": {
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated Redis password",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "bfe64cc1-4ab7-4fa8-ba42-167958e63ab8": {
                      "mountPath": "/data"
                    }
                  }
                },
                "e741c99f-64ef-41c5-8185-d4e2b4fd94f2": {
                  "icon": "https://raw.githubusercontent.com/nomideusz/opik-railway/main/icon.svg",
                  "name": "Opik",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/nomideusz/opik-railway",
                    "rootDirectory": "/frontend"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port nginx listens on - leave as is",
                      "defaultValue": "5173"
                    },
                    "NGINX_PORT": {
                      "isOptional": false,
                      "description": "Port nginx listens on - must match PORT",
                      "defaultValue": "5173"
                    },
                    "OPIK_AUTH_USER": {
                      "isOptional": false,
                      "description": "Basic-auth username for the Opik UI. Self-hosted Opik has no login of its own, so this gate is the only thing between the internet and your traces",
                      "defaultValue": "opik"
                    },
                    "OPIK_AUTH_PASSWORD": {
                      "isOptional": false,
                      "description": "Basic-auth password for the UI, and the API key for the SDK (OPIK_API_KEY=<this value>). Emptying it makes Opik open to anyone with the URL",
                      "defaultValue": "{{OPIK_AUTH_PASSWORD}}"
                    },
                    "OPIK_BACKEND_ADDRESS": {
                      "isOptional": false,
                      "description": "Backend API on the private network; nginx re-resolves it while running so backend redeploys never leave a stale address",
                      "defaultValue": "${{Backend.RAILWAY_PRIVATE_DOMAIN}}:8080"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {}
                },
                "e7cd5373-3e9a-49bd-b2ce-de5435805d9a": {
                  "icon": "https://devicons.railway.app/i/clickhouse.svg",
                  "name": "ClickHouse",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/nomideusz/opik-railway",
                    "rootDirectory": "/clickhouse"
                  },
                  "variables": {
                    "CLICKHOUSE_DB": {
                      "isOptional": false,
                      "description": "ClickHouse database",
                      "defaultValue": "opik"
                    },
                    "CLICKHOUSE_USER": {
                      "isOptional": false,
                      "description": "ClickHouse user",
                      "defaultValue": "opik"
                    },
                    "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": {
                    "bfb450c2-7cba-4699-8ceb-1eccb5c5d2fb": {
                      "mountPath": "/var/lib/clickhouse"
                    }
                  }
                },
                "f811389d-f0b9-46d1-b70b-dc57ee94d0ce": {
                  "icon": "https://raw.githubusercontent.com/nomideusz/opik-railway/main/icon.svg",
                  "name": "Backend",
                  "build": {},
                  "deploy": {
                    "startCommand": "/bin/bash -c \"until curl -sf http://$ANALYTICS_DB_HOST:$ANALYTICS_DB_PORT/ping >/dev/null && (: </dev/tcp/${STATE_DB_URL%%:*}/3306) 2>/dev/null; do echo Waiting for MySQL and ClickHouse; sleep 2; done; ./run_db_migrations.sh && exec java $JAVA_OPTS -jar opik-backend-$OPIK_VERSION.jar server config.yml\"",
                    "healthcheckPath": "/health-check",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/comet-ml/opik/opik-backend:2.2.96"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the Opik API listens on - leave as is",
                      "defaultValue": "8080"
                    },
                    "S3_URL": {
                      "isOptional": false,
                      "description": "MinIO on the private network",
                      "defaultValue": "http://${{MinIO.RAILWAY_PRIVATE_DOMAIN}}:9000"
                    },
                    "IS_MINIO": {
                      "isOptional": false,
                      "description": "Attachments go through the backend to the S3-compatible MinIO service, so object storage never needs a public URL",
                      "defaultValue": "true"
                    },
                    "JAVA_OPTS": {
                      "isOptional": false,
                      "description": "JVM flags. -Xmx caps the heap (upstream sizes it from the container limit, which on Railway is the whole plan); raise it for heavy ingestion. The Liquibase flag is required",
                      "defaultValue": "-Dliquibase.propertySubstitutionEnabled=true -XX:+UseG1GC -Xmx768m"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Redis (locks, caches, online-scoring streams) on the private network",
                      "defaultValue": "redis://:${{Redis.REDIS_PASSWORD}}@${{Redis.RAILWAY_PRIVATE_DOMAIN}}:6379/0"
                    },
                    "S3_BUCKET": {
                      "isOptional": false,
                      "description": "Attachment bucket (created by the MinIO service on boot)",
                      "defaultValue": "${{MinIO.MINIO_BUCKET}}"
                    },
                    "STATE_DB_URL": {
                      "isOptional": false,
                      "description": "MySQL (projects, datasets, prompts, experiments) on the private network",
                      "defaultValue": "${{MySQL.RAILWAY_PRIVATE_DOMAIN}}:3306/${{MySQL.MYSQL_DATABASE}}?createDatabaseIfNotExist=true&rewriteBatchedStatements=true&connectionTimeZone=UTC&forceConnectionTimeZoneToSession=true"
                    },
                    "STATE_DB_PASS": {
                      "isOptional": false,
                      "description": "MySQL password",
                      "defaultValue": "${{MySQL.MYSQL_PASSWORD}}"
                    },
                    "STATE_DB_USER": {
                      "isOptional": false,
                      "description": "MySQL user",
                      "defaultValue": "${{MySQL.MYSQL_USER}}"
                    },
                    "ANALYTICS_DB_HOST": {
                      "isOptional": false,
                      "description": "ClickHouse (traces, spans, feedback scores) on the private network",
                      "defaultValue": "${{ClickHouse.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "ANALYTICS_DB_PASS": {
                      "isOptional": false,
                      "description": "ClickHouse password",
                      "defaultValue": "${{ClickHouse.CLICKHOUSE_PASSWORD}}"
                    },
                    "ANALYTICS_DB_PORT": {
                      "isOptional": false,
                      "description": "ClickHouse HTTP port",
                      "defaultValue": "8123"
                    },
                    "AWS_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "MinIO access key",
                      "defaultValue": "${{MinIO.MINIO_ROOT_USER}}"
                    },
                    "STATE_DB_PROTOCOL": {
                      "isOptional": false,
                      "description": "JDBC scheme for the state database",
                      "defaultValue": "jdbc:mysql://"
                    },
                    "OPIK_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Encrypts the LLM provider API keys you save in Opik (AES, must be 16, 24 or 32 characters). Upstream's default is public - never change it after saving keys",
                      "defaultValue": "{{OPIK_ENCRYPTION_KEY}}"
                    },
                    "ANALYTICS_DB_PROTOCOL": {
                      "isOptional": false,
                      "description": "ClickHouse client protocol",
                      "defaultValue": "HTTP"
                    },
                    "ANALYTICS_DB_USERNAME": {
                      "isOptional": false,
                      "description": "ClickHouse user",
                      "defaultValue": "${{ClickHouse.CLICKHOUSE_USER}}"
                    },
                    "AWS_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "MinIO secret key",
                      "defaultValue": "${{MinIO.MINIO_ROOT_PASSWORD}}"
                    },
                    "STATE_DB_DATABASE_NAME": {
                      "isOptional": false,
                      "description": "MySQL database",
                      "defaultValue": "${{MySQL.MYSQL_DATABASE}}"
                    },
                    "TOGGLE_DEMO_DATA_ENABLED": {
                      "isOptional": false,
                      "description": "The demo-data generator also runs in python-backend; off so the UI does not wait for it",
                      "defaultValue": "false"
                    },
                    "OPIK_USAGE_REPORT_ENABLED": {
                      "isOptional": false,
                      "description": "Anonymous usage reports to Comet (upstream default is on)",
                      "defaultValue": "false"
                    },
                    "ANALYTICS_DB_DATABASE_NAME": {
                      "isOptional": false,
                      "description": "ClickHouse database",
                      "defaultValue": "${{ClickHouse.CLICKHOUSE_DB}}"
                    },
                    "ANALYTICS_DB_MIGRATIONS_URL": {
                      "isOptional": false,
                      "description": "ClickHouse for the schema migrations that run on every boot",
                      "defaultValue": "jdbc:clickhouse://${{ClickHouse.RAILWAY_PRIVATE_DOMAIN}}:8123"
                    },
                    "ANALYTICS_DB_MIGRATIONS_PASS": {
                      "isOptional": false,
                      "description": "ClickHouse password",
                      "defaultValue": "${{ClickHouse.CLICKHOUSE_PASSWORD}}"
                    },
                    "ANALYTICS_DB_MIGRATIONS_USER": {
                      "isOptional": false,
                      "description": "ClickHouse user",
                      "defaultValue": "${{ClickHouse.CLICKHOUSE_USER}}"
                    },
                    "TOGGLE_WELCOME_WIZARD_ENABLED": {
                      "isOptional": false,
                      "description": "Show the first-run welcome dialog",
                      "defaultValue": "true"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "Every boot runs the MySQL and ClickHouse migrations before the health check can pass",
                      "defaultValue": "600"
                    },
                    "TOGGLE_PYTHON_EVALUATOR_ENABLED": {
                      "isOptional": false,
                      "description": "Python code metrics need upstream's separate python-backend service, which this template leaves out to save RAM. LLM-as-a-judge metrics work",
                      "defaultValue": "false"
                    },
                    "LLM_PROVIDER_TOKEN_AUTH_DESTINATION_GUARD": {
                      "isOptional": false,
                      "description": "Lets custom LLM providers point at private gateways, as in upstream's self-host compose",
                      "defaultValue": "relaxed"
                    },
                    "TOGGLE_TRACE_THREAD_PYTHON_EVALUATOR_ENABLED": {
                      "isOptional": false,
                      "description": "Same as TOGGLE_PYTHON_EVALUATOR_ENABLED, for thread-level rules",
                      "defaultValue": "false"
                    },
                    "TOGGLE_SPAN_USER_DEFINED_METRIC_PYTHON_ENABLED": {
                      "isOptional": false,
                      "description": "Same as TOGGLE_PYTHON_EVALUATOR_ENABLED, for span-level rules",
                      "defaultValue": "false"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {}
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Opik",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 6,
    "needs_volume": true
  },
  "generated_at": "2026-10-14T10:14:43.564Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-12T12:47:53.616Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_abf4ae8ddef742cf93af",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 175,
    "typical_build_seconds": 0,
    "typical_start_seconds": 71,
    "slowest_service": "Backend"
  }
}
