{
  "manifest_version": "1.0.0",
  "template": {
    "id": "31ae9b44-d77a-42d8-af24-fc8fa78e4558",
    "slug": "langfuse-railway-template",
    "name": "Langfuse",
    "description": "A platform for LLM observability, tracing, evaluation, & prompt management.",
    "url": "https://railway.com/deploy/langfuse-railway-template",
    "upstream": {
      "image": "langfuse/langfuse"
    }
  },
  "services": [
    {
      "name": "Langfuse-Worker",
      "source": {
        "image": "langfuse/langfuse-worker"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "Langfuse-Web",
      "source": {
        "image": "langfuse/langfuse"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "ClickHouse",
      "source": {
        "image": "clickhouse/clickhouse-server"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/clickhouse",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Langfuse-Worker",
      "description": "Langfuse Worker port",
      "secret": false,
      "strategy": "default",
      "default": "3030"
    },
    {
      "key": "SALT",
      "service": "Langfuse-Worker",
      "description": "Salt used to hash Langfuse API keys",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "HOSTNAME",
      "service": "Langfuse-Worker",
      "description": "Listen on all Railway interfaces",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "REDIS_AUTH",
      "service": "Langfuse-Worker",
      "description": "Redis authentication password",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_HOST",
      "service": "Langfuse-Worker",
      "description": "Redis private hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDIS_PORT",
      "service": "Langfuse-Worker",
      "description": "Redis TCP port",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "DATABASE_URL",
      "service": "Langfuse-Worker",
      "description": "PostgreSQL connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CLICKHOUSE_DB",
      "service": "Langfuse-Worker",
      "description": "ClickHouse database",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "CLICKHOUSE_URL",
      "service": "Langfuse-Worker",
      "description": "ClickHouse HTTP endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ENCRYPTION_KEY",
      "service": "Langfuse-Worker",
      "description": "256-bit hex key used to encrypt sensitive data",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "CLICKHOUSE_USER",
      "service": "Langfuse-Worker",
      "description": "ClickHouse username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_TLS_ENABLED",
      "service": "Langfuse-Worker",
      "description": "Redis is accessed through Railway private networking",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "TELEMETRY_ENABLED",
      "service": "Langfuse-Worker",
      "description": "Disable Langfuse telemetry",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "CLICKHOUSE_PASSWORD",
      "service": "Langfuse-Worker",
      "description": "ClickHouse password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CLICKHOUSE_MIGRATION_URL",
      "service": "Langfuse-Worker",
      "description": "ClickHouse native endpoint for migrations",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "CLICKHOUSE_CLUSTER_ENABLED",
      "service": "Langfuse-Worker",
      "description": "Disable cluster commands for single-node ClickHouse",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_BUCKET",
      "service": "Langfuse-Worker",
      "description": "Railway Bucket name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_PREFIX",
      "service": "Langfuse-Worker",
      "description": "Prefix for raw Langfuse events",
      "secret": false,
      "strategy": "default",
      "default": "events/"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_REGION",
      "service": "Langfuse-Worker",
      "description": "Railway Bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT",
      "service": "Langfuse-Worker",
      "description": "Railway Bucket S3-compatible endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_ID",
      "service": "Langfuse-Worker",
      "description": "Railway Bucket access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLE",
      "service": "Langfuse-Worker",
      "description": "Use S3 path-style requests",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEY",
      "service": "Langfuse-Worker",
      "description": "Railway Bucket secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "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": "REDISHOST",
      "service": "Redis",
      "description": "Private Redis hostname within the Railway project",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Redis TCP port",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Default Redis ACL username",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Redis connection string using Railway private networking",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Compatibility alias for clients expecting REDISPASSWORD",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Redis authentication password generated automatically",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "Langfuse-Web",
      "description": "Langfuse Web port",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "SALT",
      "service": "Langfuse-Web",
      "description": "Must match Langfuse Worker",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "HOSTNAME",
      "service": "Langfuse-Web",
      "description": "Listen on Railway interfaces",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "REDIS_AUTH",
      "service": "Langfuse-Web",
      "description": "Redis authentication password",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_HOST",
      "service": "Langfuse-Web",
      "description": "Redis private hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDIS_PORT",
      "service": "Langfuse-Web",
      "description": "Redis TCP port",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "DATABASE_URL",
      "service": "Langfuse-Web",
      "description": "PostgreSQL connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXTAUTH_URL",
      "service": "Langfuse-Web",
      "description": "Public Langfuse URL used for authentication and links",
      "secret": false,
      "strategy": "default",
      "default": "https://example.com"
    },
    {
      "key": "CLICKHOUSE_DB",
      "service": "Langfuse-Web",
      "description": "ClickHouse database",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "CLICKHOUSE_URL",
      "service": "Langfuse-Web",
      "description": "ClickHouse HTTP endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ENCRYPTION_KEY",
      "service": "Langfuse-Web",
      "description": "Must match Langfuse Worker",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CLICKHOUSE_USER",
      "service": "Langfuse-Web",
      "description": "ClickHouse username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXTAUTH_SECRET",
      "service": "Langfuse-Web",
      "description": "Secret used to sign authentication sessions",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "REDIS_TLS_ENABLED",
      "service": "Langfuse-Web",
      "description": "Railway private Redis does not require TLS",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "TELEMETRY_ENABLED",
      "service": "Langfuse-Web",
      "description": "Disable Langfuse telemetry",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "CLICKHOUSE_PASSWORD",
      "service": "Langfuse-Web",
      "description": "ClickHouse password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CLICKHOUSE_MIGRATION_URL",
      "service": "Langfuse-Web",
      "description": "ClickHouse migration endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "CLICKHOUSE_CLUSTER_ENABLED",
      "service": "Langfuse-Web",
      "description": "Single-node ClickHouse deployment",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_BUCKET",
      "service": "Langfuse-Web",
      "description": "Railway Bucket name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_PREFIX",
      "service": "Langfuse-Web",
      "description": "Prefix for raw event storage",
      "secret": false,
      "strategy": "default",
      "default": "events/"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_REGION",
      "service": "Langfuse-Web",
      "description": "Railway Bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT",
      "service": "Langfuse-Web",
      "description": "Railway Bucket endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_ID",
      "service": "Langfuse-Web",
      "description": "Railway Bucket access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLE",
      "service": "Langfuse-Web",
      "description": "S3-compatible path-style access",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEY",
      "service": "Langfuse-Web",
      "description": "Railway Bucket secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CLICKHOUSE_DB",
      "service": "ClickHouse",
      "description": "Database used by Langfuse",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "CLICKHOUSE_USER",
      "service": "ClickHouse",
      "description": "ClickHouse application user",
      "secret": false,
      "strategy": "default",
      "default": "clickhouse"
    },
    {
      "key": "CLICKHOUSE_PASSWORD",
      "service": "ClickHouse",
      "description": "Password for the ClickHouse application user",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "langfuse-railway-template"
      }
    },
    "cli": "railway deploy --template langfuse-railway-template",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "31ae9b44-d77a-42d8-af24-fc8fa78e4558",
            "serializedConfig": {
              "buckets": {
                "43a9852b-5e8f-4ebe-b52c-ea74accea03f": {
                  "name": "Bucket"
                }
              },
              "services": {
                "41998c77-88a5-48d1-ac95-7634f2f62368": {
                  "icon": "https://langfuse.com/brand-assets/icon/color/langfuse-icon.svg",
                  "name": "Langfuse-Worker",
                  "source": {
                    "image": "langfuse/langfuse-worker"
                  },
                  "variables": {
                    "PORT": {
                      "description": "Langfuse Worker port",
                      "defaultValue": "3030"
                    },
                    "SALT": {
                      "description": "Salt used to hash Langfuse API keys",
                      "defaultValue": "{{SALT}}"
                    },
                    "HOSTNAME": {
                      "description": "Listen on all Railway interfaces",
                      "defaultValue": "0.0.0.0"
                    },
                    "REDIS_AUTH": {
                      "description": "Redis authentication password",
                      "defaultValue": "${{Redis.REDIS_PASSWORD}}"
                    },
                    "REDIS_HOST": {
                      "description": "Redis private hostname",
                      "defaultValue": "${{Redis.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDIS_PORT": {
                      "description": "Redis TCP port",
                      "defaultValue": "6379"
                    },
                    "DATABASE_URL": {
                      "description": "PostgreSQL connection string",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "CLICKHOUSE_DB": {
                      "description": "ClickHouse database",
                      "defaultValue": "default"
                    },
                    "CLICKHOUSE_URL": {
                      "description": "ClickHouse HTTP endpoint",
                      "defaultValue": "http://${{ClickHouse.RAILWAY_PRIVATE_DOMAIN}}:8123"
                    },
                    "ENCRYPTION_KEY": {
                      "description": "256-bit hex key used to encrypt sensitive data",
                      "defaultValue": "{{ENCRYPTION_KEY}}"
                    },
                    "CLICKHOUSE_USER": {
                      "description": "ClickHouse username",
                      "defaultValue": "${{ClickHouse.CLICKHOUSE_USER}}"
                    },
                    "REDIS_TLS_ENABLED": {
                      "description": "Redis is accessed through Railway private networking",
                      "defaultValue": "false"
                    },
                    "TELEMETRY_ENABLED": {
                      "description": "Disable Langfuse telemetry",
                      "defaultValue": "false"
                    },
                    "CLICKHOUSE_PASSWORD": {
                      "description": "ClickHouse password",
                      "defaultValue": "${{ClickHouse.CLICKHOUSE_PASSWORD}}"
                    },
                    "CLICKHOUSE_MIGRATION_URL": {
                      "description": "ClickHouse native endpoint for migrations",
                      "defaultValue": "clickhouse://${{ClickHouse.RAILWAY_PRIVATE_DOMAIN}}:9000"
                    },
                    "CLICKHOUSE_CLUSTER_ENABLED": {
                      "description": "Disable cluster commands for single-node ClickHouse",
                      "defaultValue": "false"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_BUCKET": {
                      "description": "Railway Bucket name",
                      "defaultValue": "${{Bucket.BUCKET}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_PREFIX": {
                      "description": "Prefix for raw Langfuse events",
                      "defaultValue": "events/"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_REGION": {
                      "description": "Railway Bucket region",
                      "defaultValue": "${{Bucket.REGION}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT": {
                      "description": "Railway Bucket S3-compatible endpoint",
                      "defaultValue": "${{Bucket.ENDPOINT}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_ID": {
                      "description": "Railway Bucket access key",
                      "defaultValue": "${{Bucket.ACCESS_KEY_ID}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLE": {
                      "description": "Use S3 path-style requests",
                      "defaultValue": "true"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEY": {
                      "description": "Railway Bucket secret key",
                      "defaultValue": "${{Bucket.SECRET_ACCESS_KEY}}"
                    }
                  }
                },
                "4fddcd2f-0a9d-4a25-9021-730411979507": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "requiredMountPath": "/var/lib/postgresql/data"
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Location where the database will be initialized",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Port to connect to Postgres.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{ POSTGRES_USER }}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Required variable for the data panel.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Default database created when image is started.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "URL to connect to Postgres database.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "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": false,
                      "description": "Password to connect to DB",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Allow Postgres to cleanly shut down",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "4fddcd2f-0a9d-4a25-9021-730411979507": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  },
                  "haTemplateCode": "postgres-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxy",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "Routes traffic to the primary",
                      "defaultValue": 3
                    },
                    "replica": {
                      "label": "Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5,
                        6,
                        7
                      ],
                      "nodeLabel": "Postgres",
                      "description": "Streaming replicas for automatic failover",
                      "defaultValue": 2
                    },
                    "internal": {
                      "label": "Coordinator Nodes",
                      "options": [
                        3,
                        5,
                        7,
                        9
                      ],
                      "nodeLabel": "etcd",
                      "defaultValue": 3
                    },
                    "description": "This will convert your Postgres database to an HA cluster with Patroni failover and etcd consensus."
                  }
                },
                "823fbebf-4ac0-414f-b8cf-8cfc5aa2c339": {
                  "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\""
                  },
                  "source": {
                    "image": "redis:8.2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Private Redis hostname within the Railway project",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Redis TCP port",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Default Redis ACL username",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Redis connection string using Railway private networking",
                      "defaultValue": "redis://${{ REDISUSER }}:${{ REDIS_PASSWORD }}@${{ REDISHOST }}:${{ REDISPORT }}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Compatibility alias for clients expecting REDISPASSWORD",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Redis authentication password generated automatically",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "823fbebf-4ac0-414f-b8cf-8cfc5aa2c339": {
                      "mountPath": "/data"
                    }
                  },
                  "haTemplateCode": "redis-ha"
                },
                "952fdb13-cee9-4822-a017-bbff557cc15b": {
                  "icon": "https://langfuse.com/brand-assets/icon/color/langfuse-icon.svg",
                  "name": "Langfuse-Web",
                  "source": {
                    "image": "langfuse/langfuse"
                  },
                  "variables": {
                    "PORT": {
                      "description": "Langfuse Web port",
                      "defaultValue": "3000"
                    },
                    "SALT": {
                      "description": "Must match Langfuse Worker",
                      "defaultValue": "${{Langfuse-Worker.SALT}}"
                    },
                    "HOSTNAME": {
                      "description": "Listen on Railway interfaces",
                      "defaultValue": "0.0.0.0"
                    },
                    "REDIS_AUTH": {
                      "description": "Redis authentication password",
                      "defaultValue": "${{Redis.REDIS_PASSWORD}}"
                    },
                    "REDIS_HOST": {
                      "description": "Redis private hostname",
                      "defaultValue": "${{Redis.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDIS_PORT": {
                      "description": "Redis TCP port",
                      "defaultValue": "6379"
                    },
                    "DATABASE_URL": {
                      "description": "PostgreSQL connection string",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "NEXTAUTH_URL": {
                      "description": "Public Langfuse URL used for authentication and links",
                      "defaultValue": "https://example.com"
                    },
                    "CLICKHOUSE_DB": {
                      "description": "ClickHouse database",
                      "defaultValue": "default"
                    },
                    "CLICKHOUSE_URL": {
                      "description": "ClickHouse HTTP endpoint",
                      "defaultValue": "http://${{ClickHouse.RAILWAY_PRIVATE_DOMAIN}}:8123"
                    },
                    "ENCRYPTION_KEY": {
                      "description": "Must match Langfuse Worker",
                      "defaultValue": "${{Langfuse-Worker.ENCRYPTION_KEY}}"
                    },
                    "CLICKHOUSE_USER": {
                      "description": "ClickHouse username",
                      "defaultValue": "${{ClickHouse.CLICKHOUSE_USER}}"
                    },
                    "NEXTAUTH_SECRET": {
                      "description": "Secret used to sign authentication sessions",
                      "defaultValue": "{{NEXTAUTH_SECRET}}"
                    },
                    "REDIS_TLS_ENABLED": {
                      "description": "Railway private Redis does not require TLS",
                      "defaultValue": "false"
                    },
                    "TELEMETRY_ENABLED": {
                      "description": "Disable Langfuse telemetry",
                      "defaultValue": "false"
                    },
                    "CLICKHOUSE_PASSWORD": {
                      "description": "ClickHouse password",
                      "defaultValue": "${{ClickHouse.CLICKHOUSE_PASSWORD}}"
                    },
                    "CLICKHOUSE_MIGRATION_URL": {
                      "description": "ClickHouse migration endpoint",
                      "defaultValue": "clickhouse://${{ClickHouse.RAILWAY_PRIVATE_DOMAIN}}:9000"
                    },
                    "CLICKHOUSE_CLUSTER_ENABLED": {
                      "description": "Single-node ClickHouse deployment",
                      "defaultValue": "false"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_BUCKET": {
                      "description": "Railway Bucket name",
                      "defaultValue": "${{Bucket.BUCKET}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_PREFIX": {
                      "description": "Prefix for raw event storage",
                      "defaultValue": "events/"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_REGION": {
                      "description": "Railway Bucket region",
                      "defaultValue": "${{Bucket.REGION}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT": {
                      "description": "Railway Bucket endpoint",
                      "defaultValue": "${{Bucket.ENDPOINT}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_ID": {
                      "description": "Railway Bucket access key",
                      "defaultValue": "${{Bucket.ACCESS_KEY_ID}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLE": {
                      "description": "S3-compatible path-style access",
                      "defaultValue": "true"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEY": {
                      "description": "Railway Bucket secret key",
                      "defaultValue": "${{Bucket.SECRET_ACCESS_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  }
                },
                "a6d009d0-b4b1-4073-a184-a12454d49ce1": {
                  "icon": "https://devicons.railway.app/clickhouse",
                  "name": "ClickHouse",
                  "source": {
                    "image": "clickhouse/clickhouse-server"
                  },
                  "variables": {
                    "CLICKHOUSE_DB": {
                      "description": "Database used by Langfuse",
                      "defaultValue": "default"
                    },
                    "CLICKHOUSE_USER": {
                      "description": "ClickHouse application user",
                      "defaultValue": "clickhouse"
                    },
                    "CLICKHOUSE_PASSWORD": {
                      "description": "Password for the ClickHouse application user",
                      "defaultValue": "{{CLICKHOUSE_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "a6d009d0-b4b1-4073-a184-a12454d49ce1": {
                      "mountPath": "/var/lib/clickhouse"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 5,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-19T13:00:19.809Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_bea7842a1b5f41c08d2f",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ]
  }
}
