{
  "manifest_version": "1.0.0",
  "template": {
    "id": "f263c0b7-10b2-479f-bb15-ad7b80a7d022",
    "slug": "langfuse-observability-stack",
    "name": "Langfuse Observability Stack",
    "description": "Langfuse LLM tracing with ClickHouse, Postgres, Redis and MinIO",
    "url": "https://railway.com/deploy/langfuse-observability-stack",
    "upstream": {
      "image": "langfuse/langfuse:4.38.0"
    }
  },
  "services": [
    {
      "name": "ClickHouse",
      "source": {
        "image": "clickhouse/clickhouse-server:25.12"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/clickhouse",
      "http": false
    },
    {
      "name": "langfuse-worker",
      "source": {
        "image": "langfuse/langfuse-worker:4.38.0"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "MinIO",
      "source": {
        "image": "quay.io/minio/minio:RELEASE.2025-03-12T18-04-18Z"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:7.4.2-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "tcp_ports": [
        6379
      ],
      "http": false
    },
    {
      "name": "langfuse-web",
      "source": {
        "image": "langfuse/langfuse:4.38.0"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "tcp_ports": [
        5432
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "CLICKHOUSE_DB",
      "service": "ClickHouse",
      "description": "Provide a value for CLICKHOUSE_DB.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "CLICKHOUSE_USER",
      "service": "ClickHouse",
      "description": "Provide a value for CLICKHOUSE_USER.",
      "secret": false,
      "strategy": "default",
      "default": "clickhouse"
    },
    {
      "key": "CLICKHOUSE_PASSWORD",
      "service": "ClickHouse",
      "description": "Provide a value for CLICKHOUSE_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "SALT",
      "service": "langfuse-worker",
      "description": "References langfuse-web so the worker and web never drift apart",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NODE_ENV",
      "service": "langfuse-worker",
      "description": "Provide a value for NODE_ENV.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "DATABASE_URL",
      "service": "langfuse-worker",
      "description": "Provide a value for DATABASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CLICKHOUSE_DB",
      "service": "langfuse-worker",
      "description": "Provide a value for CLICKHOUSE_DB.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "CLICKHOUSE_URL",
      "service": "langfuse-worker",
      "description": "Provide a value for CLICKHOUSE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ENCRYPTION_KEY",
      "service": "langfuse-worker",
      "description": "References langfuse-web so the worker and web never drift apart",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CLICKHOUSE_USER",
      "service": "langfuse-worker",
      "description": "Provide a value for CLICKHOUSE_USER.",
      "secret": false,
      "strategy": "default",
      "default": "clickhouse"
    },
    {
      "key": "NEXTAUTH_SECRET",
      "service": "langfuse-worker",
      "description": "References langfuse-web so the worker and web never drift apart",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TELEMETRY_ENABLED",
      "service": "langfuse-worker",
      "description": "Provide a value for TELEMETRY_ENABLED.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "CLICKHOUSE_PASSWORD",
      "service": "langfuse-worker",
      "description": "Provide a value for CLICKHOUSE_PASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_CONNECTION_STRING",
      "service": "langfuse-worker",
      "description": "Provide a value for REDIS_CONNECTION_STRING.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CLICKHOUSE_MIGRATION_URL",
      "service": "langfuse-worker",
      "description": "Provide a value for CLICKHOUSE_MIGRATION_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "CLICKHOUSE_CLUSTER_ENABLED",
      "service": "langfuse-worker",
      "description": "Must be false on Railway — ClickHouse runs single-node, not clustered",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_BUCKET",
      "service": "langfuse-worker",
      "description": "Provide a value for LANGFUSE_S3_EVENT_UPLOAD_BUCKET.",
      "secret": false,
      "strategy": "default",
      "default": "langfuse"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_PREFIX",
      "service": "langfuse-worker",
      "description": "Provide a value for LANGFUSE_S3_EVENT_UPLOAD_PREFIX.",
      "secret": false,
      "strategy": "default",
      "default": "events/"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_REGION",
      "service": "langfuse-worker",
      "description": "Provide a value for LANGFUSE_S3_EVENT_UPLOAD_REGION.",
      "secret": false,
      "strategy": "default",
      "default": "auto"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_BUCKET",
      "service": "langfuse-worker",
      "description": "Media upload setting, mirrors LANGFUSE_S3_EVENT_UPLOAD_BUCKET so screenshots and audio attachments land in the same MinIO bucket.",
      "secret": false,
      "strategy": "default",
      "default": "langfuse"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_PREFIX",
      "service": "langfuse-worker",
      "description": "Key prefix for uploaded media inside the bucket.",
      "secret": false,
      "strategy": "default",
      "default": "media/"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_REGION",
      "service": "langfuse-worker",
      "description": "Media upload setting, mirrors LANGFUSE_S3_EVENT_UPLOAD_REGION so screenshots and audio attachments land in the same MinIO bucket.",
      "secret": false,
      "strategy": "default",
      "default": "auto"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT",
      "service": "langfuse-worker",
      "description": "Provide a value for LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_ENDPOINT",
      "service": "langfuse-worker",
      "description": "Media upload setting, mirrors LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT so screenshots and audio attachments land in the same MinIO bucket.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_ID",
      "service": "langfuse-worker",
      "description": "Provide a value for LANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_ID.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_ACCESS_KEY_ID",
      "service": "langfuse-worker",
      "description": "Media upload setting, mirrors LANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_ID so screenshots and audio attachments land in the same MinIO bucket.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLE",
      "service": "langfuse-worker",
      "description": "Provide a value for LANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLE.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_FORCE_PATH_STYLE",
      "service": "langfuse-worker",
      "description": "Media upload setting, mirrors LANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLE so screenshots and audio attachments land in the same MinIO bucket.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEY",
      "service": "langfuse-worker",
      "description": "Provide a value for LANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEY.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_SECRET_ACCESS_KEY",
      "service": "langfuse-worker",
      "description": "Media upload setting, mirrors LANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEY so screenshots and audio attachments land in the same MinIO bucket.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MINIO_ROOT_USER",
      "service": "MinIO",
      "description": "Provide a value for MINIO_ROOT_USER.",
      "secret": false,
      "strategy": "default",
      "default": "minio"
    },
    {
      "key": "MINIO_ROOT_PASSWORD",
      "service": "MinIO",
      "description": "Provide a value for MINIO_ROOT_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Provide a value for REDIS_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Provide a value for REDIS_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "langfuse-web",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "SALT",
      "service": "langfuse-web",
      "description": "Salt for hashing API keys",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "HOSTNAME",
      "service": "langfuse-web",
      "description": "Provide a value for HOSTNAME.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "NODE_ENV",
      "service": "langfuse-web",
      "description": "Provide a value for NODE_ENV.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "DATABASE_URL",
      "service": "langfuse-web",
      "description": "Provide a value for DATABASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXTAUTH_URL",
      "service": "langfuse-web",
      "description": "Provide a value for NEXTAUTH_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "CLICKHOUSE_DB",
      "service": "langfuse-web",
      "description": "Provide a value for CLICKHOUSE_DB.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "CLICKHOUSE_URL",
      "service": "langfuse-web",
      "description": "Provide a value for CLICKHOUSE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ENCRYPTION_KEY",
      "service": "langfuse-web",
      "description": "MUST be 64 hexadecimal characters (256-bit). Generate with openssl rand -hex 32 — plain secret(64) is alphanumeric and will fail to boot.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "CLICKHOUSE_USER",
      "service": "langfuse-web",
      "description": "Provide a value for CLICKHOUSE_USER.",
      "secret": false,
      "strategy": "default",
      "default": "clickhouse"
    },
    {
      "key": "NEXTAUTH_SECRET",
      "service": "langfuse-web",
      "description": "Session signing secret",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "TELEMETRY_ENABLED",
      "service": "langfuse-web",
      "description": "Provide a value for TELEMETRY_ENABLED.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "CLICKHOUSE_PASSWORD",
      "service": "langfuse-web",
      "description": "Provide a value for CLICKHOUSE_PASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_INIT_ORG_ID",
      "service": "langfuse-web",
      "description": "Headless setup: organisation created on first boot so you can use the API immediately.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "LANGFUSE_INIT_ORG_NAME",
      "service": "langfuse-web",
      "description": "Display name of the organisation created on first boot.",
      "secret": false,
      "strategy": "default",
      "default": "My Org"
    },
    {
      "key": "LANGFUSE_INIT_USER_NAME",
      "service": "langfuse-web",
      "description": "Display name of the first admin account.",
      "secret": false,
      "strategy": "default",
      "default": "Admin"
    },
    {
      "key": "REDIS_CONNECTION_STRING",
      "service": "langfuse-web",
      "description": "Provide a value for REDIS_CONNECTION_STRING.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CLICKHOUSE_MIGRATION_URL",
      "service": "langfuse-web",
      "description": "Provide a value for CLICKHOUSE_MIGRATION_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "LANGFUSE_INIT_PROJECT_ID",
      "service": "langfuse-web",
      "description": "Headless setup: project created on first boot.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "LANGFUSE_INIT_USER_EMAIL",
      "service": "langfuse-web",
      "description": "Email of the first admin account. Change it before you share the instance.",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "CLICKHOUSE_CLUSTER_ENABLED",
      "service": "langfuse-web",
      "description": "Must be false on Railway — ClickHouse runs single-node, not clustered",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LANGFUSE_INIT_PROJECT_NAME",
      "service": "langfuse-web",
      "description": "Display name of the project created on first boot.",
      "secret": false,
      "strategy": "default",
      "default": "My Project"
    },
    {
      "key": "LANGFUSE_INIT_USER_PASSWORD",
      "service": "langfuse-web",
      "description": "Password for the first admin account. Langfuse requires at least 8 characters.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_BUCKET",
      "service": "langfuse-web",
      "description": "Provide a value for LANGFUSE_S3_EVENT_UPLOAD_BUCKET.",
      "secret": false,
      "strategy": "default",
      "default": "langfuse"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_PREFIX",
      "service": "langfuse-web",
      "description": "Provide a value for LANGFUSE_S3_EVENT_UPLOAD_PREFIX.",
      "secret": false,
      "strategy": "default",
      "default": "events/"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_REGION",
      "service": "langfuse-web",
      "description": "Provide a value for LANGFUSE_S3_EVENT_UPLOAD_REGION.",
      "secret": false,
      "strategy": "default",
      "default": "auto"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_BUCKET",
      "service": "langfuse-web",
      "description": "Media upload setting, mirrors LANGFUSE_S3_EVENT_UPLOAD_BUCKET so screenshots and audio attachments land in the same MinIO bucket.",
      "secret": false,
      "strategy": "default",
      "default": "langfuse"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_PREFIX",
      "service": "langfuse-web",
      "description": "Key prefix for uploaded media inside the bucket.",
      "secret": false,
      "strategy": "default",
      "default": "media/"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_REGION",
      "service": "langfuse-web",
      "description": "Media upload setting, mirrors LANGFUSE_S3_EVENT_UPLOAD_REGION so screenshots and audio attachments land in the same MinIO bucket.",
      "secret": false,
      "strategy": "default",
      "default": "auto"
    },
    {
      "key": "LANGFUSE_INIT_PROJECT_PUBLIC_KEY",
      "service": "langfuse-web",
      "description": "Public API key created on first boot. Use it as the username in Basic auth when sending traces.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "LANGFUSE_INIT_PROJECT_SECRET_KEY",
      "service": "langfuse-web",
      "description": "Secret API key created on first boot. Use it as the password in Basic auth. Treat it like a password.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT",
      "service": "langfuse-web",
      "description": "Provide a value for LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_ENDPOINT",
      "service": "langfuse-web",
      "description": "Media upload setting, mirrors LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT so screenshots and audio attachments land in the same MinIO bucket.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_ID",
      "service": "langfuse-web",
      "description": "Provide a value for LANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_ID.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_ACCESS_KEY_ID",
      "service": "langfuse-web",
      "description": "Media upload setting, mirrors LANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_ID so screenshots and audio attachments land in the same MinIO bucket.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLE",
      "service": "langfuse-web",
      "description": "Provide a value for LANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLE.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_FORCE_PATH_STYLE",
      "service": "langfuse-web",
      "description": "Media upload setting, mirrors LANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLE so screenshots and audio attachments land in the same MinIO bucket.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEY",
      "service": "langfuse-web",
      "description": "Provide a value for LANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEY.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_SECRET_ACCESS_KEY",
      "service": "langfuse-web",
      "description": "Media upload setting, mirrors LANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEY so screenshots and audio attachments land in the same MinIO bucket.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Provide a value for PGDATA.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Provide a value for PGHOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Provide a value for PGPORT.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Provide a value for PGUSER.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Provide a value for PGDATABASE.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Provide a value for PGPASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Provide a value for POSTGRES_DB.",
      "secret": false,
      "strategy": "default",
      "default": "langfuse"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Provide a value for DATABASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Provide a value for POSTGRES_USER.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "Provide a value for SSL_CERT_DAYS.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Provide a value for POSTGRES_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Postgres",
      "description": "Provide a value for DATABASE_PUBLIC_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_PRIVATE_URL",
      "service": "Postgres",
      "description": "Provide a value for DATABASE_PRIVATE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Provide a value for RAILWAY_DEPLOYMENT_DRAINING_SECONDS.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "langfuse-observability-stack"
      }
    },
    "cli": "railway deploy --template langfuse-observability-stack",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "f263c0b7-10b2-479f-bb15-ad7b80a7d022",
            "serializedConfig": {
              "services": {
                "08345ab3-2d98-48a0-a6e1-975e33b8c9f8": {
                  "icon": "https://devicons.railway.app/i/clickhouse.svg",
                  "name": "ClickHouse",
                  "deploy": {
                    "startCommand": "bash -c \"echo '<clickhouse><listen_host>::</listen_host></clickhouse>' > /etc/clickhouse-server/config.d/listen.xml && exec /entrypoint.sh\"",
                    "requiredMountPath": "/var/lib/clickhouse"
                  },
                  "source": {
                    "image": "clickhouse/clickhouse-server:25.12"
                  },
                  "variables": {
                    "CLICKHOUSE_DB": {
                      "defaultValue": "default"
                    },
                    "CLICKHOUSE_USER": {
                      "defaultValue": "clickhouse"
                    },
                    "CLICKHOUSE_PASSWORD": {
                      "defaultValue": "{{CLICKHOUSE_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "e36bb885-2f24-4d3b-a341-9a40ba802d43": {
                      "mountPath": "/var/lib/clickhouse"
                    }
                  }
                },
                "3bfe95d5-ec93-4fcf-8a7d-77cb5d5964d5": {
                  "icon": "https://avatars.githubusercontent.com/u/134601687?v=4",
                  "name": "langfuse-worker",
                  "deploy": {
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 5
                  },
                  "source": {
                    "image": "langfuse/langfuse-worker:4.38.0"
                  },
                  "variables": {
                    "SALT": {
                      "description": "References langfuse-web so the worker and web never drift apart",
                      "defaultValue": "${{langfuse-web.SALT}}"
                    },
                    "NODE_ENV": {
                      "defaultValue": "production"
                    },
                    "DATABASE_URL": {
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "CLICKHOUSE_DB": {
                      "defaultValue": "default"
                    },
                    "CLICKHOUSE_URL": {
                      "defaultValue": "http://${{ClickHouse.RAILWAY_PRIVATE_DOMAIN}}:8123"
                    },
                    "ENCRYPTION_KEY": {
                      "description": "References langfuse-web so the worker and web never drift apart",
                      "defaultValue": "${{langfuse-web.ENCRYPTION_KEY}}"
                    },
                    "CLICKHOUSE_USER": {
                      "defaultValue": "clickhouse"
                    },
                    "NEXTAUTH_SECRET": {
                      "description": "References langfuse-web so the worker and web never drift apart",
                      "defaultValue": "${{langfuse-web.NEXTAUTH_SECRET}}"
                    },
                    "TELEMETRY_ENABLED": {
                      "isOptional": true,
                      "defaultValue": "false"
                    },
                    "CLICKHOUSE_PASSWORD": {
                      "defaultValue": "${{ClickHouse.CLICKHOUSE_PASSWORD}}"
                    },
                    "REDIS_CONNECTION_STRING": {
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "CLICKHOUSE_MIGRATION_URL": {
                      "defaultValue": "clickhouse://${{ClickHouse.RAILWAY_PRIVATE_DOMAIN}}:9000"
                    },
                    "CLICKHOUSE_CLUSTER_ENABLED": {
                      "description": "Must be false on Railway — ClickHouse runs single-node, not clustered",
                      "defaultValue": "false"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_BUCKET": {
                      "defaultValue": "langfuse"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_PREFIX": {
                      "defaultValue": "events/"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_REGION": {
                      "defaultValue": "auto"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_BUCKET": {
                      "description": "Media upload setting, mirrors LANGFUSE_S3_EVENT_UPLOAD_BUCKET so screenshots and audio attachments land in the same MinIO bucket.",
                      "defaultValue": "langfuse"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_PREFIX": {
                      "description": "Key prefix for uploaded media inside the bucket.",
                      "defaultValue": "media/"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_REGION": {
                      "description": "Media upload setting, mirrors LANGFUSE_S3_EVENT_UPLOAD_REGION so screenshots and audio attachments land in the same MinIO bucket.",
                      "defaultValue": "auto"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT": {
                      "defaultValue": "http://${{MinIO.RAILWAY_PRIVATE_DOMAIN}}:9000"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_ENDPOINT": {
                      "description": "Media upload setting, mirrors LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT so screenshots and audio attachments land in the same MinIO bucket.",
                      "defaultValue": "http://${{MinIO.RAILWAY_PRIVATE_DOMAIN}}:9000"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_ID": {
                      "defaultValue": "${{MinIO.MINIO_ROOT_USER}}"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_ACCESS_KEY_ID": {
                      "description": "Media upload setting, mirrors LANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_ID so screenshots and audio attachments land in the same MinIO bucket.",
                      "defaultValue": "${{MinIO.MINIO_ROOT_USER}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLE": {
                      "defaultValue": "true"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_FORCE_PATH_STYLE": {
                      "description": "Media upload setting, mirrors LANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLE so screenshots and audio attachments land in the same MinIO bucket.",
                      "defaultValue": "true"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEY": {
                      "defaultValue": "${{MinIO.MINIO_ROOT_PASSWORD}}"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_SECRET_ACCESS_KEY": {
                      "description": "Media upload setting, mirrors LANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEY so screenshots and audio attachments land in the same MinIO bucket.",
                      "defaultValue": "${{MinIO.MINIO_ROOT_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  }
                },
                "6587b338-8582-464e-a485-9b1a02e91928": {
                  "icon": "https://devicons.railway.app/i/minio.svg",
                  "name": "MinIO",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"mkdir -p /data/langfuse && exec minio server /data --address :9000 --console-address :9001\"",
                    "requiredMountPath": "/data"
                  },
                  "source": {
                    "image": "quay.io/minio/minio:RELEASE.2025-03-12T18-04-18Z"
                  },
                  "variables": {
                    "MINIO_ROOT_USER": {
                      "defaultValue": "minio"
                    },
                    "MINIO_ROOT_PASSWORD": {
                      "defaultValue": "{{MINIO_ROOT_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "8d8e07f6-1de6-47f0-88b7-3632cf134f6e": {
                      "mountPath": "/data"
                    }
                  }
                },
                "9c038458-9d11-415b-93bb-039e5a1939e5": {
                  "icon": "https://devicons.railway.app/i/redis.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --maxmemory-policy noeviction --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\"",
                    "requiredMountPath": "/data"
                  },
                  "source": {
                    "image": "redis:7.4.2-alpine"
                  },
                  "variables": {
                    "REDIS_URL": {
                      "defaultValue": "redis://default:${{REDIS_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:6379"
                    },
                    "REDIS_PASSWORD": {
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "6379": {}
                    },
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "f2871f5e-cb18-45e8-94da-93ec2f364b70": {
                      "mountPath": "/data"
                    }
                  }
                },
                "a92cb650-0bf3-43c6-9091-38287fd82d28": {
                  "icon": "https://avatars.githubusercontent.com/u/134601687?v=4",
                  "name": "langfuse-web",
                  "deploy": {
                    "healthcheckPath": "/api/public/health",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 5
                  },
                  "source": {
                    "image": "langfuse/langfuse:4.38.0"
                  },
                  "variables": {
                    "PORT": {
                      "defaultValue": "3000"
                    },
                    "SALT": {
                      "description": "Salt for hashing API keys",
                      "defaultValue": "{{SALT}}"
                    },
                    "HOSTNAME": {
                      "defaultValue": "0.0.0.0"
                    },
                    "NODE_ENV": {
                      "defaultValue": "production"
                    },
                    "DATABASE_URL": {
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "NEXTAUTH_URL": {
                      "defaultValue": "https://${{langfuse-web.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "CLICKHOUSE_DB": {
                      "defaultValue": "default"
                    },
                    "CLICKHOUSE_URL": {
                      "defaultValue": "http://${{ClickHouse.RAILWAY_PRIVATE_DOMAIN}}:8123"
                    },
                    "ENCRYPTION_KEY": {
                      "description": "MUST be 64 hexadecimal characters (256-bit). Generate with openssl rand -hex 32 — plain secret(64) is alphanumeric and will fail to boot.",
                      "defaultValue": "{{ENCRYPTION_KEY}}"
                    },
                    "CLICKHOUSE_USER": {
                      "defaultValue": "clickhouse"
                    },
                    "NEXTAUTH_SECRET": {
                      "description": "Session signing secret",
                      "defaultValue": "{{NEXTAUTH_SECRET}}"
                    },
                    "TELEMETRY_ENABLED": {
                      "isOptional": true,
                      "defaultValue": "false"
                    },
                    "CLICKHOUSE_PASSWORD": {
                      "defaultValue": "${{ClickHouse.CLICKHOUSE_PASSWORD}}"
                    },
                    "LANGFUSE_INIT_ORG_ID": {
                      "description": "Headless setup: organisation created on first boot so you can use the API immediately.",
                      "defaultValue": "default"
                    },
                    "LANGFUSE_INIT_ORG_NAME": {
                      "description": "Display name of the organisation created on first boot.",
                      "defaultValue": "My Org"
                    },
                    "LANGFUSE_INIT_USER_NAME": {
                      "description": "Display name of the first admin account.",
                      "defaultValue": "Admin"
                    },
                    "REDIS_CONNECTION_STRING": {
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "CLICKHOUSE_MIGRATION_URL": {
                      "defaultValue": "clickhouse://${{ClickHouse.RAILWAY_PRIVATE_DOMAIN}}:9000"
                    },
                    "LANGFUSE_INIT_PROJECT_ID": {
                      "description": "Headless setup: project created on first boot.",
                      "defaultValue": "default"
                    },
                    "LANGFUSE_INIT_USER_EMAIL": {
                      "description": "Email of the first admin account. Change it before you share the instance.",
                      "defaultValue": "admin@example.com"
                    },
                    "CLICKHOUSE_CLUSTER_ENABLED": {
                      "description": "Must be false on Railway — ClickHouse runs single-node, not clustered",
                      "defaultValue": "false"
                    },
                    "LANGFUSE_INIT_PROJECT_NAME": {
                      "description": "Display name of the project created on first boot.",
                      "defaultValue": "My Project"
                    },
                    "LANGFUSE_INIT_USER_PASSWORD": {
                      "description": "Password for the first admin account. Langfuse requires at least 8 characters.",
                      "defaultValue": "{{LANGFUSE_INIT_USER_PASSWORD}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_BUCKET": {
                      "defaultValue": "langfuse"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_PREFIX": {
                      "defaultValue": "events/"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_REGION": {
                      "defaultValue": "auto"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_BUCKET": {
                      "description": "Media upload setting, mirrors LANGFUSE_S3_EVENT_UPLOAD_BUCKET so screenshots and audio attachments land in the same MinIO bucket.",
                      "defaultValue": "langfuse"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_PREFIX": {
                      "description": "Key prefix for uploaded media inside the bucket.",
                      "defaultValue": "media/"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_REGION": {
                      "description": "Media upload setting, mirrors LANGFUSE_S3_EVENT_UPLOAD_REGION so screenshots and audio attachments land in the same MinIO bucket.",
                      "defaultValue": "auto"
                    },
                    "LANGFUSE_INIT_PROJECT_PUBLIC_KEY": {
                      "description": "Public API key created on first boot. Use it as the username in Basic auth when sending traces.",
                      "defaultValue": "{{LANGFUSE_INIT_PROJECT_PUBLIC_KEY}}"
                    },
                    "LANGFUSE_INIT_PROJECT_SECRET_KEY": {
                      "description": "Secret API key created on first boot. Use it as the password in Basic auth. Treat it like a password.",
                      "defaultValue": "{{LANGFUSE_INIT_PROJECT_SECRET_KEY}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT": {
                      "defaultValue": "http://${{MinIO.RAILWAY_PRIVATE_DOMAIN}}:9000"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_ENDPOINT": {
                      "description": "Media upload setting, mirrors LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT so screenshots and audio attachments land in the same MinIO bucket.",
                      "defaultValue": "http://${{MinIO.RAILWAY_PRIVATE_DOMAIN}}:9000"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_ID": {
                      "defaultValue": "${{MinIO.MINIO_ROOT_USER}}"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_ACCESS_KEY_ID": {
                      "description": "Media upload setting, mirrors LANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_ID so screenshots and audio attachments land in the same MinIO bucket.",
                      "defaultValue": "${{MinIO.MINIO_ROOT_USER}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLE": {
                      "defaultValue": "true"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_FORCE_PATH_STYLE": {
                      "description": "Media upload setting, mirrors LANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLE so screenshots and audio attachments land in the same MinIO bucket.",
                      "defaultValue": "true"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEY": {
                      "defaultValue": "${{MinIO.MINIO_ROOT_PASSWORD}}"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_SECRET_ACCESS_KEY": {
                      "description": "Media upload setting, mirrors LANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEY so screenshots and audio attachments land in the same MinIO bucket.",
                      "defaultValue": "${{MinIO.MINIO_ROOT_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "langfuse-web-dom": {
                        "port": 3000
                      }
                    }
                  }
                },
                "fab59474-1216-45eb-a4e8-ca7ac3bc1cf0": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "build": {},
                  "deploy": {
                    "requiredMountPath": "/var/lib/postgresql/data"
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
                  },
                  "variables": {
                    "PGDATA": {
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "defaultValue": "postgres"
                    },
                    "PGDATABASE": {
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "defaultValue": "langfuse"
                    },
                    "DATABASE_URL": {
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": true,
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "DATABASE_PRIVATE_URL": {
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "5432": {}
                    },
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "d473bc71-739a-4ecf-ae95-f5032059c0fe": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "langfuse-web",
      "method": "GET",
      "path": "/api/public/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 6,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T04:14:46.774Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-21T03:13:09.603Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_1076d08488a549bea15f",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "FAILED,SUCCESS,SUCCESS,DEPLOYING,SUCCESS,SUCCESS"
      }
    ]
  }
}
