{
  "manifest_version": "1.0.0",
  "template": {
    "id": "e205b976-63c9-4a9b-ad27-f222d347a49d",
    "slug": "langfuse-4",
    "name": "Langfuse 4 | LLM Observability, Evals and Prompt Management",
    "description": "Langfuse v4 with ClickHouse, S3 bucket and API keys ready on first boot",
    "url": "https://railway.com/deploy/langfuse-4",
    "upstream": {
      "image": "langfuse/langfuse:4.46.0"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.10.2-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "ClickHouse",
      "source": {
        "repo": "https://github.com/nomideusz/langfuse-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/clickhouse",
      "http": false
    },
    {
      "name": "Langfuse",
      "source": {
        "image": "langfuse/langfuse:4.46.0"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Worker",
      "source": {
        "image": "langfuse/langfuse-worker:4.46.0"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Auto-generated Redis password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Data subdirectory - keeps Postgres happy on Railway volumes",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database name",
      "secret": false,
      "strategy": "default",
      "default": "langfuse"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Database user",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Auto-generated database password (letters and digits: it goes into a URL)",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Time for Postgres to shut down cleanly on redeploy",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "CLICKHOUSE_USER",
      "service": "ClickHouse",
      "description": "ClickHouse user",
      "secret": false,
      "strategy": "default",
      "default": "langfuse"
    },
    {
      "key": "CLICKHOUSE_PASSWORD",
      "service": "ClickHouse",
      "description": "Auto-generated ClickHouse password (letters and digits: it goes into a URL)",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "ClickHouse",
      "description": "Time for ClickHouse to flush and shut down cleanly on redeploy",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "PORT",
      "service": "Langfuse",
      "description": "Port Langfuse listens on - leave as is",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "SALT",
      "service": "Langfuse",
      "description": "Salt for hashing API keys - never change after the first deploy",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "HOSTNAME",
      "service": "Langfuse",
      "description": "Listen on IPv4 and IPv6 - leave as is",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "REDIS_AUTH",
      "service": "Langfuse",
      "description": "Redis password - leave as is",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_HOST",
      "service": "Langfuse",
      "description": "Redis host - private network, leave as is",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDIS_PORT",
      "service": "Langfuse",
      "description": "Redis port",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "DATABASE_URL",
      "service": "Langfuse",
      "description": "Postgres connection - private network, leave as is",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "NEXTAUTH_URL",
      "service": "Langfuse",
      "description": "Public URL of Langfuse - set it to your custom domain when you add one",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "CLICKHOUSE_URL",
      "service": "Langfuse",
      "description": "ClickHouse HTTP endpoint - private network, leave as is",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ENCRYPTION_KEY",
      "service": "Langfuse",
      "description": "64 hex chars encrypting stored LLM API keys - never change after the first deploy",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "CLICKHOUSE_USER",
      "service": "Langfuse",
      "description": "ClickHouse user - leave as is",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXTAUTH_SECRET",
      "service": "Langfuse",
      "description": "Signs login sessions",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "AUTH_DISABLE_SIGNUP",
      "service": "Langfuse",
      "description": "Only invited users can join. Set to false to let anyone with the URL sign up",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "CLICKHOUSE_PASSWORD",
      "service": "Langfuse",
      "description": "ClickHouse password - leave as is",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_INIT_ORG_ID",
      "service": "Langfuse",
      "description": "ID of the organization created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "my-org"
    },
    {
      "key": "LANGFUSE_INIT_ORG_NAME",
      "service": "Langfuse",
      "description": "Name of the organization created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "My Organization"
    },
    {
      "key": "LANGFUSE_INIT_USER_NAME",
      "service": "Langfuse",
      "description": "Display name of the first admin",
      "secret": false,
      "strategy": "default",
      "default": "Admin"
    },
    {
      "key": "CLICKHOUSE_MIGRATION_URL",
      "service": "Langfuse",
      "description": "ClickHouse native endpoint for migrations - leave as is",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "LANGFUSE_INIT_PROJECT_ID",
      "service": "Langfuse",
      "description": "ID of the project created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "my-project"
    },
    {
      "key": "LANGFUSE_INIT_USER_EMAIL",
      "service": "Langfuse",
      "description": "Your email - the first admin login, created on first boot",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "CLICKHOUSE_CLUSTER_ENABLED",
      "service": "Langfuse",
      "description": "Single-node ClickHouse",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LANGFUSE_INIT_PROJECT_NAME",
      "service": "Langfuse",
      "description": "Name of the project created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "My Project"
    },
    {
      "key": "LANGFUSE_INIT_USER_PASSWORD",
      "service": "Langfuse",
      "description": "Password of the first admin - copy it from here to log in, then change it in Langfuse",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_BUCKET",
      "service": "Langfuse",
      "description": "CSV/JSON exports go to the bundled Railway bucket - leave as is",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_PREFIX",
      "service": "Langfuse",
      "description": "Key prefix inside the bucket",
      "secret": false,
      "strategy": "default",
      "default": "exports/"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_REGION",
      "service": "Langfuse",
      "description": "Bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_BUCKET",
      "service": "Langfuse",
      "description": "Raw ingested events go to the bundled Railway bucket - leave as is",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_PREFIX",
      "service": "Langfuse",
      "description": "Key prefix inside the bucket",
      "secret": false,
      "strategy": "default",
      "default": "events/"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_REGION",
      "service": "Langfuse",
      "description": "Bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_BUCKET",
      "service": "Langfuse",
      "description": "Images, audio and files attached to traces go to the bundled Railway bucket - leave as is",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_PREFIX",
      "service": "Langfuse",
      "description": "Key prefix inside the bucket",
      "secret": false,
      "strategy": "default",
      "default": "media/"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_REGION",
      "service": "Langfuse",
      "description": "Bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "Langfuse",
      "description": "First boot runs the Postgres and ClickHouse migrations before the health check can pass",
      "secret": false,
      "strategy": "default",
      "default": "600"
    },
    {
      "key": "LANGFUSE_INIT_PROJECT_PUBLIC_KEY",
      "service": "Langfuse",
      "description": "Project public key (LANGFUSE_PUBLIC_KEY in your app)",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "LANGFUSE_INIT_PROJECT_SECRET_KEY",
      "service": "Langfuse",
      "description": "Project secret key (LANGFUSE_SECRET_KEY in your app)",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_ENABLED",
      "service": "Langfuse",
      "description": "Exports are written to the bucket and downloaded from a signed link",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_ENDPOINT",
      "service": "Langfuse",
      "description": "Bucket endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT",
      "service": "Langfuse",
      "description": "Bucket endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_ENDPOINT",
      "service": "Langfuse",
      "description": "Bucket endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_ACCESS_KEY_ID",
      "service": "Langfuse",
      "description": "Bucket credentials",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_ID",
      "service": "Langfuse",
      "description": "Bucket credentials",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_ACCESS_KEY_ID",
      "service": "Langfuse",
      "description": "Bucket credentials",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_FORCE_PATH_STYLE",
      "service": "Langfuse",
      "description": "Railway buckets use virtual-host style addressing",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLE",
      "service": "Langfuse",
      "description": "Railway buckets use virtual-host style addressing",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_FORCE_PATH_STYLE",
      "service": "Langfuse",
      "description": "Railway buckets use virtual-host style addressing",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_SECRET_ACCESS_KEY",
      "service": "Langfuse",
      "description": "Bucket credentials",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEY",
      "service": "Langfuse",
      "description": "Bucket credentials",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_SECRET_ACCESS_KEY",
      "service": "Langfuse",
      "description": "Bucket credentials",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PORT",
      "service": "Worker",
      "description": "Worker health endpoint port - leave as is",
      "secret": false,
      "strategy": "default",
      "default": "3030"
    },
    {
      "key": "SALT",
      "service": "Worker",
      "description": "Salt for hashing API keys - never change after the first deploy",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_AUTH",
      "service": "Worker",
      "description": "Redis password - leave as is",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_HOST",
      "service": "Worker",
      "description": "Redis host - private network, leave as is",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDIS_PORT",
      "service": "Worker",
      "description": "Redis port",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "DATABASE_URL",
      "service": "Worker",
      "description": "Postgres connection - private network, leave as is",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "NEXTAUTH_URL",
      "service": "Worker",
      "description": "Public URL of Langfuse - set it to your custom domain when you add one",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CLICKHOUSE_URL",
      "service": "Worker",
      "description": "ClickHouse HTTP endpoint - private network, leave as is",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ENCRYPTION_KEY",
      "service": "Worker",
      "description": "64 hex chars encrypting stored LLM API keys - never change after the first deploy",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CLICKHOUSE_USER",
      "service": "Worker",
      "description": "ClickHouse user - leave as is",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CLICKHOUSE_PASSWORD",
      "service": "Worker",
      "description": "ClickHouse password - leave as is",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CLICKHOUSE_MIGRATION_URL",
      "service": "Worker",
      "description": "ClickHouse native endpoint for migrations - leave as is",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "CLICKHOUSE_CLUSTER_ENABLED",
      "service": "Worker",
      "description": "Single-node ClickHouse",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_BUCKET",
      "service": "Worker",
      "description": "CSV/JSON exports go to the bundled Railway bucket - leave as is",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_PREFIX",
      "service": "Worker",
      "description": "Key prefix inside the bucket",
      "secret": false,
      "strategy": "default",
      "default": "exports/"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_REGION",
      "service": "Worker",
      "description": "Bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_BUCKET",
      "service": "Worker",
      "description": "Raw ingested events go to the bundled Railway bucket - leave as is",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_PREFIX",
      "service": "Worker",
      "description": "Key prefix inside the bucket",
      "secret": false,
      "strategy": "default",
      "default": "events/"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_REGION",
      "service": "Worker",
      "description": "Bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_BUCKET",
      "service": "Worker",
      "description": "Images, audio and files attached to traces go to the bundled Railway bucket - leave as is",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_PREFIX",
      "service": "Worker",
      "description": "Key prefix inside the bucket",
      "secret": false,
      "strategy": "default",
      "default": "media/"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_REGION",
      "service": "Worker",
      "description": "Bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_ENABLED",
      "service": "Worker",
      "description": "Exports are written to the bucket and downloaded from a signed link",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_ENDPOINT",
      "service": "Worker",
      "description": "Bucket endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT",
      "service": "Worker",
      "description": "Bucket endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_ENDPOINT",
      "service": "Worker",
      "description": "Bucket endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_ACCESS_KEY_ID",
      "service": "Worker",
      "description": "Bucket credentials",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_ID",
      "service": "Worker",
      "description": "Bucket credentials",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_ACCESS_KEY_ID",
      "service": "Worker",
      "description": "Bucket credentials",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_FORCE_PATH_STYLE",
      "service": "Worker",
      "description": "Railway buckets use virtual-host style addressing",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLE",
      "service": "Worker",
      "description": "Railway buckets use virtual-host style addressing",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_FORCE_PATH_STYLE",
      "service": "Worker",
      "description": "Railway buckets use virtual-host style addressing",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_SECRET_ACCESS_KEY",
      "service": "Worker",
      "description": "Bucket credentials",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEY",
      "service": "Worker",
      "description": "Bucket credentials",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_SECRET_ACCESS_KEY",
      "service": "Worker",
      "description": "Bucket credentials",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "langfuse-4"
      }
    },
    "cli": "railway deploy --template langfuse-4",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "e205b976-63c9-4a9b-ad27-f222d347a49d",
            "serializedConfig": {
              "buckets": {
                "de9a9816-82a3-492a-96bc-7ad6ba8f388d": {
                  "name": "Blobs"
                }
              },
              "services": {
                "1e6e6c17-056a-4681-bf16-89e32f552b68": {
                  "icon": "https://devicons.railway.app/i/redis.svg",
                  "name": "Redis",
                  "build": {},
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf /data/lost+found && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --maxmemory-policy noeviction --appendonly yes --dir /data\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.10.2-alpine"
                  },
                  "variables": {
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated Redis password",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "1e6e6c17-056a-4681-bf16-89e32f552b68": {
                      "mountPath": "/data"
                    }
                  }
                },
                "52217b4c-ffaa-44ae-a5ad-0d504e7c56b7": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Data subdirectory - keeps Postgres happy on Railway volumes",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database name",
                      "defaultValue": "langfuse"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Database user",
                      "defaultValue": "postgres"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated database password (letters and digits: it goes into a URL)",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Time for Postgres to shut down cleanly on redeploy",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "52217b4c-ffaa-44ae-a5ad-0d504e7c56b7": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "5d3cdf4a-b8f5-464b-af32-2d4129043189": {
                  "icon": "https://devicons.railway.app/i/clickhouse.svg",
                  "name": "ClickHouse",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/nomideusz/langfuse-railway",
                    "rootDirectory": "/clickhouse"
                  },
                  "variables": {
                    "CLICKHOUSE_USER": {
                      "isOptional": false,
                      "description": "ClickHouse user",
                      "defaultValue": "langfuse"
                    },
                    "CLICKHOUSE_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated ClickHouse password (letters and digits: it goes into a URL)",
                      "defaultValue": "{{CLICKHOUSE_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Time for ClickHouse to flush and shut down cleanly on redeploy",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "5d3cdf4a-b8f5-464b-af32-2d4129043189": {
                      "mountPath": "/var/lib/clickhouse"
                    }
                  }
                },
                "61618c27-1168-4650-95d6-b9b085c386f8": {
                  "icon": "https://langfuse.com/icon.svg",
                  "name": "Langfuse",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/public/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "langfuse/langfuse:4.46.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Langfuse listens on - leave as is",
                      "defaultValue": "3000"
                    },
                    "SALT": {
                      "isOptional": false,
                      "description": "Salt for hashing API keys - never change after the first deploy",
                      "defaultValue": "{{SALT}}"
                    },
                    "HOSTNAME": {
                      "isOptional": false,
                      "description": "Listen on IPv4 and IPv6 - leave as is",
                      "defaultValue": "::"
                    },
                    "REDIS_AUTH": {
                      "isOptional": false,
                      "description": "Redis password - leave as is",
                      "defaultValue": "${{Redis.REDIS_PASSWORD}}"
                    },
                    "REDIS_HOST": {
                      "isOptional": false,
                      "description": "Redis host - private network, leave as is",
                      "defaultValue": "${{Redis.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDIS_PORT": {
                      "isOptional": false,
                      "description": "Redis port",
                      "defaultValue": "6379"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection - private network, leave as is",
                      "defaultValue": "postgresql://${{Postgres.POSTGRES_USER}}:${{Postgres.POSTGRES_PASSWORD}}@${{Postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/${{Postgres.POSTGRES_DB}}"
                    },
                    "NEXTAUTH_URL": {
                      "isOptional": false,
                      "description": "Public URL of Langfuse - set it to your custom domain when you add one",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "CLICKHOUSE_URL": {
                      "isOptional": false,
                      "description": "ClickHouse HTTP endpoint - private network, leave as is",
                      "defaultValue": "http://${{ClickHouse.RAILWAY_PRIVATE_DOMAIN}}:8123"
                    },
                    "ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "64 hex chars encrypting stored LLM API keys - never change after the first deploy",
                      "defaultValue": "{{ENCRYPTION_KEY}}"
                    },
                    "CLICKHOUSE_USER": {
                      "isOptional": false,
                      "description": "ClickHouse user - leave as is",
                      "defaultValue": "${{ClickHouse.CLICKHOUSE_USER}}"
                    },
                    "NEXTAUTH_SECRET": {
                      "isOptional": false,
                      "description": "Signs login sessions",
                      "defaultValue": "{{NEXTAUTH_SECRET}}"
                    },
                    "AUTH_DISABLE_SIGNUP": {
                      "isOptional": false,
                      "description": "Only invited users can join. Set to false to let anyone with the URL sign up",
                      "defaultValue": "true"
                    },
                    "CLICKHOUSE_PASSWORD": {
                      "isOptional": false,
                      "description": "ClickHouse password - leave as is",
                      "defaultValue": "${{ClickHouse.CLICKHOUSE_PASSWORD}}"
                    },
                    "LANGFUSE_INIT_ORG_ID": {
                      "isOptional": false,
                      "description": "ID of the organization created on first boot",
                      "defaultValue": "my-org"
                    },
                    "LANGFUSE_INIT_ORG_NAME": {
                      "isOptional": false,
                      "description": "Name of the organization created on first boot",
                      "defaultValue": "My Organization"
                    },
                    "LANGFUSE_INIT_USER_NAME": {
                      "isOptional": false,
                      "description": "Display name of the first admin",
                      "defaultValue": "Admin"
                    },
                    "CLICKHOUSE_MIGRATION_URL": {
                      "isOptional": false,
                      "description": "ClickHouse native endpoint for migrations - leave as is",
                      "defaultValue": "clickhouse://${{ClickHouse.RAILWAY_PRIVATE_DOMAIN}}:9000"
                    },
                    "LANGFUSE_INIT_PROJECT_ID": {
                      "isOptional": false,
                      "description": "ID of the project created on first boot",
                      "defaultValue": "my-project"
                    },
                    "LANGFUSE_INIT_USER_EMAIL": {
                      "isOptional": false,
                      "description": "Your email - the first admin login, created on first boot",
                      "defaultValue": "{{LANGFUSE_INIT_USER_EMAIL}}"
                    },
                    "CLICKHOUSE_CLUSTER_ENABLED": {
                      "isOptional": false,
                      "description": "Single-node ClickHouse",
                      "defaultValue": "false"
                    },
                    "LANGFUSE_INIT_PROJECT_NAME": {
                      "isOptional": false,
                      "description": "Name of the project created on first boot",
                      "defaultValue": "My Project"
                    },
                    "LANGFUSE_INIT_USER_PASSWORD": {
                      "isOptional": false,
                      "description": "Password of the first admin - copy it from here to log in, then change it in Langfuse",
                      "defaultValue": "{{LANGFUSE_INIT_USER_PASSWORD}}"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_BUCKET": {
                      "isOptional": false,
                      "description": "CSV/JSON exports go to the bundled Railway bucket - leave as is",
                      "defaultValue": "${{Blobs.BUCKET}}"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_PREFIX": {
                      "isOptional": false,
                      "description": "Key prefix inside the bucket",
                      "defaultValue": "exports/"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_REGION": {
                      "isOptional": false,
                      "description": "Bucket region",
                      "defaultValue": "${{Blobs.REGION}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_BUCKET": {
                      "isOptional": false,
                      "description": "Raw ingested events go to the bundled Railway bucket - leave as is",
                      "defaultValue": "${{Blobs.BUCKET}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_PREFIX": {
                      "isOptional": false,
                      "description": "Key prefix inside the bucket",
                      "defaultValue": "events/"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_REGION": {
                      "isOptional": false,
                      "description": "Bucket region",
                      "defaultValue": "${{Blobs.REGION}}"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_BUCKET": {
                      "isOptional": false,
                      "description": "Images, audio and files attached to traces go to the bundled Railway bucket - leave as is",
                      "defaultValue": "${{Blobs.BUCKET}}"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_PREFIX": {
                      "isOptional": false,
                      "description": "Key prefix inside the bucket",
                      "defaultValue": "media/"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_REGION": {
                      "isOptional": false,
                      "description": "Bucket region",
                      "defaultValue": "${{Blobs.REGION}}"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "First boot runs the Postgres and ClickHouse migrations before the health check can pass",
                      "defaultValue": "600"
                    },
                    "LANGFUSE_INIT_PROJECT_PUBLIC_KEY": {
                      "isOptional": false,
                      "description": "Project public key (LANGFUSE_PUBLIC_KEY in your app)",
                      "defaultValue": "{{LANGFUSE_INIT_PROJECT_PUBLIC_KEY}}"
                    },
                    "LANGFUSE_INIT_PROJECT_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Project secret key (LANGFUSE_SECRET_KEY in your app)",
                      "defaultValue": "{{LANGFUSE_INIT_PROJECT_SECRET_KEY}}"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_ENABLED": {
                      "isOptional": false,
                      "description": "Exports are written to the bucket and downloaded from a signed link",
                      "defaultValue": "true"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_ENDPOINT": {
                      "isOptional": false,
                      "description": "Bucket endpoint",
                      "defaultValue": "${{Blobs.ENDPOINT}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT": {
                      "isOptional": false,
                      "description": "Bucket endpoint",
                      "defaultValue": "${{Blobs.ENDPOINT}}"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_ENDPOINT": {
                      "isOptional": false,
                      "description": "Bucket endpoint",
                      "defaultValue": "${{Blobs.ENDPOINT}}"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket credentials",
                      "defaultValue": "${{Blobs.ACCESS_KEY_ID}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket credentials",
                      "defaultValue": "${{Blobs.ACCESS_KEY_ID}}"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket credentials",
                      "defaultValue": "${{Blobs.ACCESS_KEY_ID}}"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_FORCE_PATH_STYLE": {
                      "isOptional": false,
                      "description": "Railway buckets use virtual-host style addressing",
                      "defaultValue": "false"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLE": {
                      "isOptional": false,
                      "description": "Railway buckets use virtual-host style addressing",
                      "defaultValue": "false"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_FORCE_PATH_STYLE": {
                      "isOptional": false,
                      "description": "Railway buckets use virtual-host style addressing",
                      "defaultValue": "false"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket credentials",
                      "defaultValue": "${{Blobs.SECRET_ACCESS_KEY}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket credentials",
                      "defaultValue": "${{Blobs.SECRET_ACCESS_KEY}}"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket credentials",
                      "defaultValue": "${{Blobs.SECRET_ACCESS_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "75a49c66-7e53-42c8-9fce-5600915403a4": {
                  "icon": "https://langfuse.com/icon.svg",
                  "name": "Worker",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "langfuse/langfuse-worker:4.46.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Worker health endpoint port - leave as is",
                      "defaultValue": "3030"
                    },
                    "SALT": {
                      "isOptional": false,
                      "description": "Salt for hashing API keys - never change after the first deploy",
                      "defaultValue": "${{Langfuse.SALT}}"
                    },
                    "REDIS_AUTH": {
                      "isOptional": false,
                      "description": "Redis password - leave as is",
                      "defaultValue": "${{Redis.REDIS_PASSWORD}}"
                    },
                    "REDIS_HOST": {
                      "isOptional": false,
                      "description": "Redis host - private network, leave as is",
                      "defaultValue": "${{Redis.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDIS_PORT": {
                      "isOptional": false,
                      "description": "Redis port",
                      "defaultValue": "6379"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection - private network, leave as is",
                      "defaultValue": "postgresql://${{Postgres.POSTGRES_USER}}:${{Postgres.POSTGRES_PASSWORD}}@${{Postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/${{Postgres.POSTGRES_DB}}"
                    },
                    "NEXTAUTH_URL": {
                      "isOptional": false,
                      "description": "Public URL of Langfuse - set it to your custom domain when you add one",
                      "defaultValue": "${{Langfuse.NEXTAUTH_URL}}"
                    },
                    "CLICKHOUSE_URL": {
                      "isOptional": false,
                      "description": "ClickHouse HTTP endpoint - private network, leave as is",
                      "defaultValue": "http://${{ClickHouse.RAILWAY_PRIVATE_DOMAIN}}:8123"
                    },
                    "ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "64 hex chars encrypting stored LLM API keys - never change after the first deploy",
                      "defaultValue": "${{Langfuse.ENCRYPTION_KEY}}"
                    },
                    "CLICKHOUSE_USER": {
                      "isOptional": false,
                      "description": "ClickHouse user - leave as is",
                      "defaultValue": "${{ClickHouse.CLICKHOUSE_USER}}"
                    },
                    "CLICKHOUSE_PASSWORD": {
                      "isOptional": false,
                      "description": "ClickHouse password - leave as is",
                      "defaultValue": "${{ClickHouse.CLICKHOUSE_PASSWORD}}"
                    },
                    "CLICKHOUSE_MIGRATION_URL": {
                      "isOptional": false,
                      "description": "ClickHouse native endpoint for migrations - leave as is",
                      "defaultValue": "clickhouse://${{ClickHouse.RAILWAY_PRIVATE_DOMAIN}}:9000"
                    },
                    "CLICKHOUSE_CLUSTER_ENABLED": {
                      "isOptional": false,
                      "description": "Single-node ClickHouse",
                      "defaultValue": "false"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_BUCKET": {
                      "isOptional": false,
                      "description": "CSV/JSON exports go to the bundled Railway bucket - leave as is",
                      "defaultValue": "${{Blobs.BUCKET}}"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_PREFIX": {
                      "isOptional": false,
                      "description": "Key prefix inside the bucket",
                      "defaultValue": "exports/"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_REGION": {
                      "isOptional": false,
                      "description": "Bucket region",
                      "defaultValue": "${{Blobs.REGION}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_BUCKET": {
                      "isOptional": false,
                      "description": "Raw ingested events go to the bundled Railway bucket - leave as is",
                      "defaultValue": "${{Blobs.BUCKET}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_PREFIX": {
                      "isOptional": false,
                      "description": "Key prefix inside the bucket",
                      "defaultValue": "events/"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_REGION": {
                      "isOptional": false,
                      "description": "Bucket region",
                      "defaultValue": "${{Blobs.REGION}}"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_BUCKET": {
                      "isOptional": false,
                      "description": "Images, audio and files attached to traces go to the bundled Railway bucket - leave as is",
                      "defaultValue": "${{Blobs.BUCKET}}"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_PREFIX": {
                      "isOptional": false,
                      "description": "Key prefix inside the bucket",
                      "defaultValue": "media/"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_REGION": {
                      "isOptional": false,
                      "description": "Bucket region",
                      "defaultValue": "${{Blobs.REGION}}"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_ENABLED": {
                      "isOptional": false,
                      "description": "Exports are written to the bucket and downloaded from a signed link",
                      "defaultValue": "true"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_ENDPOINT": {
                      "isOptional": false,
                      "description": "Bucket endpoint",
                      "defaultValue": "${{Blobs.ENDPOINT}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT": {
                      "isOptional": false,
                      "description": "Bucket endpoint",
                      "defaultValue": "${{Blobs.ENDPOINT}}"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_ENDPOINT": {
                      "isOptional": false,
                      "description": "Bucket endpoint",
                      "defaultValue": "${{Blobs.ENDPOINT}}"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket credentials",
                      "defaultValue": "${{Blobs.ACCESS_KEY_ID}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket credentials",
                      "defaultValue": "${{Blobs.ACCESS_KEY_ID}}"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket credentials",
                      "defaultValue": "${{Blobs.ACCESS_KEY_ID}}"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_FORCE_PATH_STYLE": {
                      "isOptional": false,
                      "description": "Railway buckets use virtual-host style addressing",
                      "defaultValue": "false"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLE": {
                      "isOptional": false,
                      "description": "Railway buckets use virtual-host style addressing",
                      "defaultValue": "false"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_FORCE_PATH_STYLE": {
                      "isOptional": false,
                      "description": "Railway buckets use virtual-host style addressing",
                      "defaultValue": "false"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket credentials",
                      "defaultValue": "${{Blobs.SECRET_ACCESS_KEY}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket credentials",
                      "defaultValue": "${{Blobs.SECRET_ACCESS_KEY}}"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket credentials",
                      "defaultValue": "${{Blobs.SECRET_ACCESS_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Langfuse",
      "method": "GET",
      "path": "/api/public/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 5,
    "needs_volume": true
  },
  "generated_at": "2026-09-27T22:14:44.387Z",
  "generator_version": "0.1.0"
}
