{
  "manifest_version": "1.0.0",
  "template": {
    "id": "1ae0d13c-2010-467f-a4ea-fd8fd5ea3ff3",
    "slug": "langfuse-v4-llm-observability-stack",
    "name": "Langfuse v4 LLM Observability Stack",
    "description": "Trace, evaluate and cost-track every LLM call. Langfuse v4 with ClickHouse.",
    "url": "https://railway.com/deploy/langfuse-v4-llm-observability-stack",
    "upstream": {
      "image": "langfuse/langfuse:4.56.0"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "langfuse-web",
      "source": {
        "image": "langfuse/langfuse:4.56.0"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "langfuse-worker",
      "source": {
        "image": "langfuse/langfuse-worker:4.56.0"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "ClickHouse",
      "source": {
        "repo": "https://github.com/baranberkay96/langfuse-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/clickhouse",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Location where the database will be initialized",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Port to connect to Postgres.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Required variable for the data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database created when image is started.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "URL to connect to Postgres database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "User to connect to Postgres DB",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL certificate expiry in days.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Password to connect to DB",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Allow Postgres to cleanly shut down",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PORT",
      "service": "langfuse-web",
      "description": "HTTP port of the Next.js server (Railway routes the public domain here).",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "SALT",
      "service": "langfuse-web",
      "description": "Salt for hashing API keys. Generated once; never change after first deploy.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "HOSTNAME",
      "service": "langfuse-web",
      "description": "Bind address; :: listens on IPv4 and IPv6.",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "DATABASE_URL",
      "service": "langfuse-web",
      "description": "Postgres connection string (private network). Prisma migrations run automatically on web start.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXTAUTH_URL",
      "service": "langfuse-web",
      "description": "Public URL of this service; used for login callbacks and links.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "CLICKHOUSE_URL",
      "service": "langfuse-web",
      "description": "ClickHouse HTTP endpoint (private network).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ENCRYPTION_KEY",
      "service": "langfuse-web",
      "description": "256-bit hex key that encrypts stored LLM credentials. Generated once; never change.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "CLICKHOUSE_USER",
      "service": "langfuse-web",
      "description": "ClickHouse user (reference).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXTAUTH_SECRET",
      "service": "langfuse-web",
      "description": "Signs session cookies. Generated once.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "TELEMETRY_ENABLED",
      "service": "langfuse-web",
      "description": "Anonymous usage telemetry to Langfuse (upstream default). Set false to opt out.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "AUTH_DISABLE_SIGNUP",
      "service": "langfuse-web",
      "description": "Public sign-up is off; the admin below is created headlessly. Set false temporarily to let invited teammates create accounts.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "CLICKHOUSE_PASSWORD",
      "service": "langfuse-web",
      "description": "ClickHouse password (reference).",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_INIT_ORG_ID",
      "service": "langfuse-web",
      "description": "ID of the organization created on first start (headless init).",
      "secret": false,
      "strategy": "default",
      "default": "railway-org"
    },
    {
      "key": "LANGFUSE_INIT_ORG_NAME",
      "service": "langfuse-web",
      "description": "Display name of the initial organization.",
      "secret": false,
      "strategy": "default",
      "default": "My Organization"
    },
    {
      "key": "LANGFUSE_INIT_USER_NAME",
      "service": "langfuse-web",
      "description": "Display name of the first admin user.",
      "secret": false,
      "strategy": "default",
      "default": "Admin"
    },
    {
      "key": "REDIS_CONNECTION_STRING",
      "service": "langfuse-web",
      "description": "Redis URL for queues and cache. family=0 lets ioredis use IPv4 or IPv6 private DNS.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CLICKHOUSE_MIGRATION_URL",
      "service": "langfuse-web",
      "description": "ClickHouse native endpoint used for schema migrations.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "LANGFUSE_INIT_PROJECT_ID",
      "service": "langfuse-web",
      "description": "ID of the project created on first start.",
      "secret": false,
      "strategy": "default",
      "default": "railway-project"
    },
    {
      "key": "LANGFUSE_INIT_USER_EMAIL",
      "service": "langfuse-web",
      "description": "Email of the first admin user (organization owner). Used to sign in.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "CLICKHOUSE_CLUSTER_ENABLED",
      "service": "langfuse-web",
      "description": "Single ClickHouse node: do not run DDL ON CLUSTER.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LANGFUSE_INIT_PROJECT_NAME",
      "service": "langfuse-web",
      "description": "Display name of the initial project.",
      "secret": false,
      "strategy": "default",
      "default": "My Project"
    },
    {
      "key": "LANGFUSE_INIT_USER_PASSWORD",
      "service": "langfuse-web",
      "description": "Password of the first admin user. Generated; read it from this variable and change it after first login.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_BUCKET",
      "service": "langfuse-web",
      "description": "Railway Bucket name for batch exports.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_PREFIX",
      "service": "langfuse-web",
      "description": "Key prefix for exports.",
      "secret": false,
      "strategy": "default",
      "default": "exports/"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_REGION",
      "service": "langfuse-web",
      "description": "Bucket region.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_BUCKET",
      "service": "langfuse-web",
      "description": "Railway Bucket name for event uploads.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_PREFIX",
      "service": "langfuse-web",
      "description": "Key prefix for event objects inside the bucket.",
      "secret": false,
      "strategy": "default",
      "default": "events/"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_REGION",
      "service": "langfuse-web",
      "description": "Bucket region (Railway Buckets use auto).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_BUCKET",
      "service": "langfuse-web",
      "description": "Railway Bucket name for media uploads.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_PREFIX",
      "service": "langfuse-web",
      "description": "Key prefix for media objects inside the bucket.",
      "secret": false,
      "strategy": "default",
      "default": "media/"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_REGION",
      "service": "langfuse-web",
      "description": "Bucket region (Railway Buckets use auto).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_INIT_PROJECT_PUBLIC_KEY",
      "service": "langfuse-web",
      "description": "Project public API key (LANGFUSE_PUBLIC_KEY for SDKs). Generated.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "LANGFUSE_INIT_PROJECT_SECRET_KEY",
      "service": "langfuse-web",
      "description": "Project secret API key (LANGFUSE_SECRET_KEY for SDKs). Generated; keep private.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_ENABLED",
      "service": "langfuse-web",
      "description": "Enable CSV/JSON batch exports from the UI, written to the bucket.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_ENDPOINT",
      "service": "langfuse-web",
      "description": "Bucket S3 endpoint used to upload exports.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT",
      "service": "langfuse-web",
      "description": "Bucket S3 endpoint (public; also used for presigned media URLs).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_ENDPOINT",
      "service": "langfuse-web",
      "description": "Bucket S3 endpoint (public; also used for presigned media URLs).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_ACCESS_KEY_ID",
      "service": "langfuse-web",
      "description": "Bucket access key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_ID",
      "service": "langfuse-web",
      "description": "Bucket access key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_ACCESS_KEY_ID",
      "service": "langfuse-web",
      "description": "Bucket access key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_FORCE_PATH_STYLE",
      "service": "langfuse-web",
      "description": "Railway Buckets use virtual-hosted-style URLs.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLE",
      "service": "langfuse-web",
      "description": "Railway Buckets use virtual-hosted-style URLs.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_FORCE_PATH_STYLE",
      "service": "langfuse-web",
      "description": "Railway Buckets use virtual-hosted-style URLs.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_EXTERNAL_ENDPOINT",
      "service": "langfuse-web",
      "description": "Endpoint used in presigned download links (public bucket endpoint).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_SECRET_ACCESS_KEY",
      "service": "langfuse-web",
      "description": "Bucket secret key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEY",
      "service": "langfuse-web",
      "description": "Bucket secret key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_SECRET_ACCESS_KEY",
      "service": "langfuse-web",
      "description": "Bucket secret key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Private network hostname of the Redis service, only resolvable from services in the same environment",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Port that Redis listens on",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Username for authenticating with Redis",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Connection string for connecting to Redis using the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Alias of REDIS_PASSWORD for clients that expect the unseparated name",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Randomly generated password for authenticating with Redis",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "langfuse-worker",
      "description": "Worker HTTP port (health endpoint only).",
      "secret": false,
      "strategy": "default",
      "default": "3030"
    },
    {
      "key": "SALT",
      "service": "langfuse-worker",
      "description": "Must be identical to langfuse-web (hashes API keys).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "HOSTNAME",
      "service": "langfuse-worker",
      "description": "Bind address; :: listens on IPv4 and IPv6.",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "DATABASE_URL",
      "service": "langfuse-worker",
      "description": "Postgres connection string (private network). Prisma migrations run automatically on web start.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXTAUTH_URL",
      "service": "langfuse-worker",
      "description": "Public URL of langfuse-web; used to build links in emails and integrations.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CLICKHOUSE_URL",
      "service": "langfuse-worker",
      "description": "ClickHouse HTTP endpoint (private network).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ENCRYPTION_KEY",
      "service": "langfuse-worker",
      "description": "Must be identical to langfuse-web (encrypts stored secrets).",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CLICKHOUSE_USER",
      "service": "langfuse-worker",
      "description": "ClickHouse user (reference).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TELEMETRY_ENABLED",
      "service": "langfuse-worker",
      "description": "Anonymous usage telemetry to Langfuse (upstream default). Set false to opt out.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "CLICKHOUSE_PASSWORD",
      "service": "langfuse-worker",
      "description": "ClickHouse password (reference).",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_CONNECTION_STRING",
      "service": "langfuse-worker",
      "description": "Redis URL for queues and cache. family=0 lets ioredis use IPv4 or IPv6 private DNS.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CLICKHOUSE_MIGRATION_URL",
      "service": "langfuse-worker",
      "description": "ClickHouse native endpoint used for schema migrations.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "CLICKHOUSE_CLUSTER_ENABLED",
      "service": "langfuse-worker",
      "description": "Single ClickHouse node: do not run DDL ON CLUSTER.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_BUCKET",
      "service": "langfuse-worker",
      "description": "Railway Bucket name for batch exports.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_PREFIX",
      "service": "langfuse-worker",
      "description": "Key prefix for exports.",
      "secret": false,
      "strategy": "default",
      "default": "exports/"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_REGION",
      "service": "langfuse-worker",
      "description": "Bucket region.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_BUCKET",
      "service": "langfuse-worker",
      "description": "Railway Bucket name for event uploads.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_PREFIX",
      "service": "langfuse-worker",
      "description": "Key prefix for event objects inside the bucket.",
      "secret": false,
      "strategy": "default",
      "default": "events/"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_REGION",
      "service": "langfuse-worker",
      "description": "Bucket region (Railway Buckets use auto).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_BUCKET",
      "service": "langfuse-worker",
      "description": "Railway Bucket name for media uploads.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_PREFIX",
      "service": "langfuse-worker",
      "description": "Key prefix for media objects inside the bucket.",
      "secret": false,
      "strategy": "default",
      "default": "media/"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_REGION",
      "service": "langfuse-worker",
      "description": "Bucket region (Railway Buckets use auto).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_ENABLED",
      "service": "langfuse-worker",
      "description": "Enable CSV/JSON batch exports from the UI, written to the bucket.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_ENDPOINT",
      "service": "langfuse-worker",
      "description": "Bucket S3 endpoint used to upload exports.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT",
      "service": "langfuse-worker",
      "description": "Bucket S3 endpoint (public; also used for presigned media URLs).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_ENDPOINT",
      "service": "langfuse-worker",
      "description": "Bucket S3 endpoint (public; also used for presigned media URLs).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_ACCESS_KEY_ID",
      "service": "langfuse-worker",
      "description": "Bucket access key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_ID",
      "service": "langfuse-worker",
      "description": "Bucket access key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_ACCESS_KEY_ID",
      "service": "langfuse-worker",
      "description": "Bucket access key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_FORCE_PATH_STYLE",
      "service": "langfuse-worker",
      "description": "Railway Buckets use virtual-hosted-style URLs.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLE",
      "service": "langfuse-worker",
      "description": "Railway Buckets use virtual-hosted-style URLs.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_FORCE_PATH_STYLE",
      "service": "langfuse-worker",
      "description": "Railway Buckets use virtual-hosted-style URLs.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_EXTERNAL_ENDPOINT",
      "service": "langfuse-worker",
      "description": "Endpoint used in presigned download links (public bucket endpoint).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_SECRET_ACCESS_KEY",
      "service": "langfuse-worker",
      "description": "Bucket secret key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEY",
      "service": "langfuse-worker",
      "description": "Bucket secret key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_SECRET_ACCESS_KEY",
      "service": "langfuse-worker",
      "description": "Bucket secret key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PORT",
      "service": "ClickHouse",
      "description": "HTTP port; used by the Railway healthcheck (/ping).",
      "secret": false,
      "strategy": "default",
      "default": "8123"
    },
    {
      "key": "CLICKHOUSE_DB",
      "service": "ClickHouse",
      "description": "Database Langfuse uses.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "CLICKHOUSE_USER",
      "service": "ClickHouse",
      "description": "ClickHouse user created by the image entrypoint on first start.",
      "secret": false,
      "strategy": "default",
      "default": "langfuse"
    },
    {
      "key": "CLICKHOUSE_PASSWORD",
      "service": "ClickHouse",
      "description": "ClickHouse password (alphanumeric so it is safe inside Langfuse migration URLs).",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "ClickHouse",
      "description": "Give ClickHouse time to flush and shut down cleanly on redeploy.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "langfuse-v4-llm-observability-stack"
      }
    },
    "cli": "railway deploy --template langfuse-v4-llm-observability-stack",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "1ae0d13c-2010-467f-a4ea-fd8fd5ea3ff3",
            "serializedConfig": {
              "buckets": {
                "e044b64d-163c-59fa-8461-021574801568": {
                  "name": "Bucket"
                }
              },
              "services": {
                "4134b6b1-a8f6-5faf-92ed-ce42f31b4f69": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": true,
                      "description": "Location where the database will be initialized",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": true,
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": true,
                      "description": "Port to connect to Postgres.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": true,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{ POSTGRES_USER }}"
                    },
                    "PGDATABASE": {
                      "isOptional": true,
                      "description": "Required variable for the data panel.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": true,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": true,
                      "description": "Default database created when image is started.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": true,
                      "description": "URL to connect to Postgres database.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": true,
                      "description": "User to connect to Postgres DB",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": true,
                      "description": "SSL certificate expiry in days.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": true,
                      "description": "Password to connect to DB",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Allow Postgres to cleanly shut down",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "771b5e69-243a-5977-afaa-26b149338be1": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "4c2f872f-bb5c-53cb-b607-3e5f058eae9f": {
                  "icon": "https://langfuse.com/icon.svg",
                  "name": "langfuse-web",
                  "deploy": {
                    "healthcheckPath": "/api/public/ready",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "langfuse/langfuse:4.56.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "HTTP port of the Next.js server (Railway routes the public domain here).",
                      "defaultValue": "3000"
                    },
                    "SALT": {
                      "isOptional": true,
                      "description": "Salt for hashing API keys. Generated once; never change after first deploy.",
                      "defaultValue": "{{SALT}}"
                    },
                    "HOSTNAME": {
                      "isOptional": true,
                      "description": "Bind address; :: listens on IPv4 and IPv6.",
                      "defaultValue": "::"
                    },
                    "DATABASE_URL": {
                      "isOptional": true,
                      "description": "Postgres connection string (private network). Prisma migrations run automatically on web start.",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "NEXTAUTH_URL": {
                      "isOptional": true,
                      "description": "Public URL of this service; used for login callbacks and links.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "CLICKHOUSE_URL": {
                      "isOptional": true,
                      "description": "ClickHouse HTTP endpoint (private network).",
                      "defaultValue": "http://${{ClickHouse.RAILWAY_PRIVATE_DOMAIN}}:8123"
                    },
                    "ENCRYPTION_KEY": {
                      "isOptional": true,
                      "description": "256-bit hex key that encrypts stored LLM credentials. Generated once; never change.",
                      "defaultValue": "{{ENCRYPTION_KEY}}"
                    },
                    "CLICKHOUSE_USER": {
                      "isOptional": true,
                      "description": "ClickHouse user (reference).",
                      "defaultValue": "${{ClickHouse.CLICKHOUSE_USER}}"
                    },
                    "NEXTAUTH_SECRET": {
                      "isOptional": true,
                      "description": "Signs session cookies. Generated once.",
                      "defaultValue": "{{NEXTAUTH_SECRET}}"
                    },
                    "TELEMETRY_ENABLED": {
                      "isOptional": true,
                      "description": "Anonymous usage telemetry to Langfuse (upstream default). Set false to opt out.",
                      "defaultValue": "true"
                    },
                    "AUTH_DISABLE_SIGNUP": {
                      "isOptional": true,
                      "description": "Public sign-up is off; the admin below is created headlessly. Set false temporarily to let invited teammates create accounts.",
                      "defaultValue": "true"
                    },
                    "CLICKHOUSE_PASSWORD": {
                      "isOptional": true,
                      "description": "ClickHouse password (reference).",
                      "defaultValue": "${{ClickHouse.CLICKHOUSE_PASSWORD}}"
                    },
                    "LANGFUSE_INIT_ORG_ID": {
                      "isOptional": true,
                      "description": "ID of the organization created on first start (headless init).",
                      "defaultValue": "railway-org"
                    },
                    "LANGFUSE_INIT_ORG_NAME": {
                      "isOptional": true,
                      "description": "Display name of the initial organization.",
                      "defaultValue": "My Organization"
                    },
                    "LANGFUSE_INIT_USER_NAME": {
                      "isOptional": true,
                      "description": "Display name of the first admin user.",
                      "defaultValue": "Admin"
                    },
                    "REDIS_CONNECTION_STRING": {
                      "isOptional": true,
                      "description": "Redis URL for queues and cache. family=0 lets ioredis use IPv4 or IPv6 private DNS.",
                      "defaultValue": "${{Redis.REDIS_URL}}?family=0"
                    },
                    "CLICKHOUSE_MIGRATION_URL": {
                      "isOptional": true,
                      "description": "ClickHouse native endpoint used for schema migrations.",
                      "defaultValue": "clickhouse://${{ClickHouse.RAILWAY_PRIVATE_DOMAIN}}:9000"
                    },
                    "LANGFUSE_INIT_PROJECT_ID": {
                      "isOptional": true,
                      "description": "ID of the project created on first start.",
                      "defaultValue": "railway-project"
                    },
                    "LANGFUSE_INIT_USER_EMAIL": {
                      "isOptional": false,
                      "description": "Email of the first admin user (organization owner). Used to sign in.",
                      "defaultValue": "{{LANGFUSE_INIT_USER_EMAIL}}"
                    },
                    "CLICKHOUSE_CLUSTER_ENABLED": {
                      "isOptional": true,
                      "description": "Single ClickHouse node: do not run DDL ON CLUSTER.",
                      "defaultValue": "false"
                    },
                    "LANGFUSE_INIT_PROJECT_NAME": {
                      "isOptional": true,
                      "description": "Display name of the initial project.",
                      "defaultValue": "My Project"
                    },
                    "LANGFUSE_INIT_USER_PASSWORD": {
                      "isOptional": true,
                      "description": "Password of the first admin user. Generated; read it from this variable and change it after first login.",
                      "defaultValue": "{{LANGFUSE_INIT_USER_PASSWORD}}"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_BUCKET": {
                      "isOptional": true,
                      "description": "Railway Bucket name for batch exports.",
                      "defaultValue": "${{Bucket.BUCKET}}"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_PREFIX": {
                      "isOptional": true,
                      "description": "Key prefix for exports.",
                      "defaultValue": "exports/"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_REGION": {
                      "isOptional": true,
                      "description": "Bucket region.",
                      "defaultValue": "${{Bucket.REGION}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_BUCKET": {
                      "isOptional": true,
                      "description": "Railway Bucket name for event uploads.",
                      "defaultValue": "${{Bucket.BUCKET}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_PREFIX": {
                      "isOptional": true,
                      "description": "Key prefix for event objects inside the bucket.",
                      "defaultValue": "events/"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_REGION": {
                      "isOptional": true,
                      "description": "Bucket region (Railway Buckets use auto).",
                      "defaultValue": "${{Bucket.REGION}}"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_BUCKET": {
                      "isOptional": true,
                      "description": "Railway Bucket name for media uploads.",
                      "defaultValue": "${{Bucket.BUCKET}}"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_PREFIX": {
                      "isOptional": true,
                      "description": "Key prefix for media objects inside the bucket.",
                      "defaultValue": "media/"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_REGION": {
                      "isOptional": true,
                      "description": "Bucket region (Railway Buckets use auto).",
                      "defaultValue": "${{Bucket.REGION}}"
                    },
                    "LANGFUSE_INIT_PROJECT_PUBLIC_KEY": {
                      "isOptional": true,
                      "description": "Project public API key (LANGFUSE_PUBLIC_KEY for SDKs). Generated.",
                      "defaultValue": "{{LANGFUSE_INIT_PROJECT_PUBLIC_KEY}}"
                    },
                    "LANGFUSE_INIT_PROJECT_SECRET_KEY": {
                      "isOptional": true,
                      "description": "Project secret API key (LANGFUSE_SECRET_KEY for SDKs). Generated; keep private.",
                      "defaultValue": "{{LANGFUSE_INIT_PROJECT_SECRET_KEY}}"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_ENABLED": {
                      "isOptional": true,
                      "description": "Enable CSV/JSON batch exports from the UI, written to the bucket.",
                      "defaultValue": "true"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_ENDPOINT": {
                      "isOptional": true,
                      "description": "Bucket S3 endpoint used to upload exports.",
                      "defaultValue": "${{Bucket.ENDPOINT}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT": {
                      "isOptional": true,
                      "description": "Bucket S3 endpoint (public; also used for presigned media URLs).",
                      "defaultValue": "${{Bucket.ENDPOINT}}"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_ENDPOINT": {
                      "isOptional": true,
                      "description": "Bucket S3 endpoint (public; also used for presigned media URLs).",
                      "defaultValue": "${{Bucket.ENDPOINT}}"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_ACCESS_KEY_ID": {
                      "isOptional": true,
                      "description": "Bucket access key.",
                      "defaultValue": "${{Bucket.ACCESS_KEY_ID}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_ID": {
                      "isOptional": true,
                      "description": "Bucket access key.",
                      "defaultValue": "${{Bucket.ACCESS_KEY_ID}}"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_ACCESS_KEY_ID": {
                      "isOptional": true,
                      "description": "Bucket access key.",
                      "defaultValue": "${{Bucket.ACCESS_KEY_ID}}"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_FORCE_PATH_STYLE": {
                      "isOptional": true,
                      "description": "Railway Buckets use virtual-hosted-style URLs.",
                      "defaultValue": "false"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLE": {
                      "isOptional": true,
                      "description": "Railway Buckets use virtual-hosted-style URLs.",
                      "defaultValue": "false"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_FORCE_PATH_STYLE": {
                      "isOptional": true,
                      "description": "Railway Buckets use virtual-hosted-style URLs.",
                      "defaultValue": "false"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_EXTERNAL_ENDPOINT": {
                      "isOptional": true,
                      "description": "Endpoint used in presigned download links (public bucket endpoint).",
                      "defaultValue": "${{Bucket.ENDPOINT}}"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_SECRET_ACCESS_KEY": {
                      "isOptional": true,
                      "description": "Bucket secret key.",
                      "defaultValue": "${{Bucket.SECRET_ACCESS_KEY}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEY": {
                      "isOptional": true,
                      "description": "Bucket secret key.",
                      "defaultValue": "${{Bucket.SECRET_ACCESS_KEY}}"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_SECRET_ACCESS_KEY": {
                      "isOptional": true,
                      "description": "Bucket secret key.",
                      "defaultValue": "${{Bucket.SECRET_ACCESS_KEY}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  }
                },
                "58c4d15a-60cf-5c1a-ae7b-1a8ce0863299": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.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 --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\"",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": true,
                      "description": "Private network hostname of the Redis service, only resolvable from services in the same environment",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": true,
                      "description": "Port that Redis listens on",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": true,
                      "description": "Username for authenticating with Redis",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": true,
                      "description": "Connection string for connecting to Redis using the private network",
                      "defaultValue": "redis://${{ REDISUSER }}:${{ REDIS_PASSWORD }}@${{ REDISHOST }}:${{ REDISPORT }}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": true,
                      "description": "Alias of REDIS_PASSWORD for clients that expect the unseparated name",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": true,
                      "description": "Randomly generated password for authenticating with Redis",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "16080ee6-2371-5c9a-acb8-4438e8006210": {
                      "mountPath": "/data"
                    }
                  }
                },
                "8818deae-e799-53ad-b83a-d4b2541c53d3": {
                  "icon": "https://langfuse.com/icon.svg",
                  "name": "langfuse-worker",
                  "deploy": {
                    "healthcheckPath": "/api/health",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "langfuse/langfuse-worker:4.56.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Worker HTTP port (health endpoint only).",
                      "defaultValue": "3030"
                    },
                    "SALT": {
                      "isOptional": true,
                      "description": "Must be identical to langfuse-web (hashes API keys).",
                      "defaultValue": "${{langfuse-web.SALT}}"
                    },
                    "HOSTNAME": {
                      "isOptional": true,
                      "description": "Bind address; :: listens on IPv4 and IPv6.",
                      "defaultValue": "::"
                    },
                    "DATABASE_URL": {
                      "isOptional": true,
                      "description": "Postgres connection string (private network). Prisma migrations run automatically on web start.",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "NEXTAUTH_URL": {
                      "isOptional": true,
                      "description": "Public URL of langfuse-web; used to build links in emails and integrations.",
                      "defaultValue": "${{langfuse-web.NEXTAUTH_URL}}"
                    },
                    "CLICKHOUSE_URL": {
                      "isOptional": true,
                      "description": "ClickHouse HTTP endpoint (private network).",
                      "defaultValue": "http://${{ClickHouse.RAILWAY_PRIVATE_DOMAIN}}:8123"
                    },
                    "ENCRYPTION_KEY": {
                      "isOptional": true,
                      "description": "Must be identical to langfuse-web (encrypts stored secrets).",
                      "defaultValue": "${{langfuse-web.ENCRYPTION_KEY}}"
                    },
                    "CLICKHOUSE_USER": {
                      "isOptional": true,
                      "description": "ClickHouse user (reference).",
                      "defaultValue": "${{ClickHouse.CLICKHOUSE_USER}}"
                    },
                    "TELEMETRY_ENABLED": {
                      "isOptional": true,
                      "description": "Anonymous usage telemetry to Langfuse (upstream default). Set false to opt out.",
                      "defaultValue": "true"
                    },
                    "CLICKHOUSE_PASSWORD": {
                      "isOptional": true,
                      "description": "ClickHouse password (reference).",
                      "defaultValue": "${{ClickHouse.CLICKHOUSE_PASSWORD}}"
                    },
                    "REDIS_CONNECTION_STRING": {
                      "isOptional": true,
                      "description": "Redis URL for queues and cache. family=0 lets ioredis use IPv4 or IPv6 private DNS.",
                      "defaultValue": "${{Redis.REDIS_URL}}?family=0"
                    },
                    "CLICKHOUSE_MIGRATION_URL": {
                      "isOptional": true,
                      "description": "ClickHouse native endpoint used for schema migrations.",
                      "defaultValue": "clickhouse://${{ClickHouse.RAILWAY_PRIVATE_DOMAIN}}:9000"
                    },
                    "CLICKHOUSE_CLUSTER_ENABLED": {
                      "isOptional": true,
                      "description": "Single ClickHouse node: do not run DDL ON CLUSTER.",
                      "defaultValue": "false"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_BUCKET": {
                      "isOptional": true,
                      "description": "Railway Bucket name for batch exports.",
                      "defaultValue": "${{Bucket.BUCKET}}"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_PREFIX": {
                      "isOptional": true,
                      "description": "Key prefix for exports.",
                      "defaultValue": "exports/"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_REGION": {
                      "isOptional": true,
                      "description": "Bucket region.",
                      "defaultValue": "${{Bucket.REGION}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_BUCKET": {
                      "isOptional": true,
                      "description": "Railway Bucket name for event uploads.",
                      "defaultValue": "${{Bucket.BUCKET}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_PREFIX": {
                      "isOptional": true,
                      "description": "Key prefix for event objects inside the bucket.",
                      "defaultValue": "events/"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_REGION": {
                      "isOptional": true,
                      "description": "Bucket region (Railway Buckets use auto).",
                      "defaultValue": "${{Bucket.REGION}}"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_BUCKET": {
                      "isOptional": true,
                      "description": "Railway Bucket name for media uploads.",
                      "defaultValue": "${{Bucket.BUCKET}}"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_PREFIX": {
                      "isOptional": true,
                      "description": "Key prefix for media objects inside the bucket.",
                      "defaultValue": "media/"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_REGION": {
                      "isOptional": true,
                      "description": "Bucket region (Railway Buckets use auto).",
                      "defaultValue": "${{Bucket.REGION}}"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_ENABLED": {
                      "isOptional": true,
                      "description": "Enable CSV/JSON batch exports from the UI, written to the bucket.",
                      "defaultValue": "true"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_ENDPOINT": {
                      "isOptional": true,
                      "description": "Bucket S3 endpoint used to upload exports.",
                      "defaultValue": "${{Bucket.ENDPOINT}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT": {
                      "isOptional": true,
                      "description": "Bucket S3 endpoint (public; also used for presigned media URLs).",
                      "defaultValue": "${{Bucket.ENDPOINT}}"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_ENDPOINT": {
                      "isOptional": true,
                      "description": "Bucket S3 endpoint (public; also used for presigned media URLs).",
                      "defaultValue": "${{Bucket.ENDPOINT}}"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_ACCESS_KEY_ID": {
                      "isOptional": true,
                      "description": "Bucket access key.",
                      "defaultValue": "${{Bucket.ACCESS_KEY_ID}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_ID": {
                      "isOptional": true,
                      "description": "Bucket access key.",
                      "defaultValue": "${{Bucket.ACCESS_KEY_ID}}"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_ACCESS_KEY_ID": {
                      "isOptional": true,
                      "description": "Bucket access key.",
                      "defaultValue": "${{Bucket.ACCESS_KEY_ID}}"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_FORCE_PATH_STYLE": {
                      "isOptional": true,
                      "description": "Railway Buckets use virtual-hosted-style URLs.",
                      "defaultValue": "false"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLE": {
                      "isOptional": true,
                      "description": "Railway Buckets use virtual-hosted-style URLs.",
                      "defaultValue": "false"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_FORCE_PATH_STYLE": {
                      "isOptional": true,
                      "description": "Railway Buckets use virtual-hosted-style URLs.",
                      "defaultValue": "false"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_EXTERNAL_ENDPOINT": {
                      "isOptional": true,
                      "description": "Endpoint used in presigned download links (public bucket endpoint).",
                      "defaultValue": "${{Bucket.ENDPOINT}}"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_SECRET_ACCESS_KEY": {
                      "isOptional": true,
                      "description": "Bucket secret key.",
                      "defaultValue": "${{Bucket.SECRET_ACCESS_KEY}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEY": {
                      "isOptional": true,
                      "description": "Bucket secret key.",
                      "defaultValue": "${{Bucket.SECRET_ACCESS_KEY}}"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_SECRET_ACCESS_KEY": {
                      "isOptional": true,
                      "description": "Bucket secret key.",
                      "defaultValue": "${{Bucket.SECRET_ACCESS_KEY}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  }
                },
                "a4eabdd5-dbdb-5e3b-ba47-3dd9d4b790e8": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/clickhouse.svg",
                  "name": "ClickHouse",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "healthcheckPath": "/ping",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "baranberkay96/langfuse-railway",
                    "branch": "main",
                    "rootDirectory": "/services/clickhouse"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "HTTP port; used by the Railway healthcheck (/ping).",
                      "defaultValue": "8123"
                    },
                    "CLICKHOUSE_DB": {
                      "isOptional": true,
                      "description": "Database Langfuse uses.",
                      "defaultValue": "default"
                    },
                    "CLICKHOUSE_USER": {
                      "isOptional": true,
                      "description": "ClickHouse user created by the image entrypoint on first start.",
                      "defaultValue": "langfuse"
                    },
                    "CLICKHOUSE_PASSWORD": {
                      "isOptional": true,
                      "description": "ClickHouse password (alphanumeric so it is safe inside Langfuse migration URLs).",
                      "defaultValue": "{{CLICKHOUSE_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Give ClickHouse time to flush and shut down cleanly on redeploy.",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "d7161490-595e-5b41-95fc-df42dac6c414": {
                      "mountPath": "/var/lib/clickhouse"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "langfuse-web",
      "method": "GET",
      "path": "/api/public/ready",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 5,
    "needs_volume": true
  },
  "generated_at": "2026-10-11T16:14:40.554Z",
  "generator_version": "0.1.0"
}
