{
  "manifest_version": "1.0.0",
  "template": {
    "id": "f3e1fde5-c210-4744-9862-70ac277277a0",
    "slug": "langfuse-observability",
    "name": "Langfuse v4",
    "description": "Self-host Langfuse on Railway: LLM tracing, evals and prompt management",
    "url": "https://railway.com/deploy/langfuse-observability",
    "upstream": {
      "image": "langfuse/langfuse"
    }
  },
  "services": [
    {
      "name": "langfuse-worker",
      "source": {
        "image": "langfuse/langfuse-worker"
      },
      "needs_volume": false,
      "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
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2.1"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "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
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "langfuse-worker",
      "description": "Worker HTTP port for health checks",
      "secret": false,
      "strategy": "default",
      "default": "3030"
    },
    {
      "key": "SALT",
      "service": "langfuse-worker",
      "description": "Must match the web service salt",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "HOSTNAME",
      "service": "langfuse-worker",
      "description": "Bind address inside the container",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "DATABASE_URL",
      "service": "langfuse-worker",
      "description": "Transactional Postgres connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXTAUTH_URL",
      "service": "langfuse-worker",
      "description": "Public base URL, matches the web service",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NODE_OPTIONS",
      "service": "langfuse-worker",
      "description": "Node heap ceiling for the container",
      "secret": false,
      "strategy": "default",
      "default": "--max-old-space-size=3072"
    },
    {
      "key": "CLICKHOUSE_DB",
      "service": "langfuse-worker",
      "description": "ClickHouse database name",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "CLICKHOUSE_URL",
      "service": "langfuse-worker",
      "description": "ClickHouse HTTP endpoint, private",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ENCRYPTION_KEY",
      "service": "langfuse-worker",
      "description": "Must match the web service key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CLICKHOUSE_USER",
      "service": "langfuse-worker",
      "description": "ClickHouse username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TELEMETRY_ENABLED",
      "service": "langfuse-worker",
      "description": "Anonymous usage stats, set false to opt out",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "LANGFUSE_LOG_LEVEL",
      "service": "langfuse-worker",
      "description": "Application log verbosity",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "CLICKHOUSE_PASSWORD",
      "service": "langfuse-worker",
      "description": "ClickHouse password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_CONNECTION_STRING",
      "service": "langfuse-worker",
      "description": "Queue and cache, dual-stack DNS",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CLICKHOUSE_MIGRATION_URL",
      "service": "langfuse-worker",
      "description": "Native endpoint for schema migrations",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "CLICKHOUSE_CLUSTER_ENABLED",
      "service": "langfuse-worker",
      "description": "Single-node, no replicated tables",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_BUCKET",
      "service": "langfuse-worker",
      "description": "Batch export bucket",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_PREFIX",
      "service": "langfuse-worker",
      "description": "Key prefix for batch 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": "Raw ingestion event bucket",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_PREFIX",
      "service": "langfuse-worker",
      "description": "Key prefix for ingestion events",
      "secret": false,
      "strategy": "default",
      "default": "events/"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_REGION",
      "service": "langfuse-worker",
      "description": "Bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_BUCKET",
      "service": "langfuse-worker",
      "description": "Multi-modal media bucket",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_PREFIX",
      "service": "langfuse-worker",
      "description": "Key prefix for uploaded media",
      "secret": false,
      "strategy": "default",
      "default": "media/"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_REGION",
      "service": "langfuse-worker",
      "description": "Bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_ENABLED",
      "service": "langfuse-worker",
      "description": "Enable scheduled batch exports",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_ENDPOINT",
      "service": "langfuse-worker",
      "description": "S3-compatible endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT",
      "service": "langfuse-worker",
      "description": "S3-compatible endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_ENDPOINT",
      "service": "langfuse-worker",
      "description": "Endpoint used for presigned browser uploads",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_ACCESS_KEY_ID",
      "service": "langfuse-worker",
      "description": "Bucket access key id",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_ID",
      "service": "langfuse-worker",
      "description": "Bucket access key id",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_ACCESS_KEY_ID",
      "service": "langfuse-worker",
      "description": "Bucket access key id",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_FORCE_PATH_STYLE",
      "service": "langfuse-worker",
      "description": "Path-style bucket addressing",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLE",
      "service": "langfuse-worker",
      "description": "Path-style bucket addressing",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_FORCE_PATH_STYLE",
      "service": "langfuse-worker",
      "description": "Path-style bucket addressing",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_EXTERNAL_ENDPOINT",
      "service": "langfuse-worker",
      "description": "Endpoint used in download links",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_SECRET_ACCESS_KEY",
      "service": "langfuse-worker",
      "description": "Bucket secret access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEY",
      "service": "langfuse-worker",
      "description": "Bucket secret access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_SECRET_ACCESS_KEY",
      "service": "langfuse-worker",
      "description": "Bucket secret access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PORT",
      "service": "langfuse-web",
      "description": "HTTP port, matches public target port",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "SALT",
      "service": "langfuse-web",
      "description": "Hashes API keys, keep stable",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "HOSTNAME",
      "service": "langfuse-web",
      "description": "Bind address inside the container",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "DATABASE_URL",
      "service": "langfuse-web",
      "description": "Transactional Postgres connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXTAUTH_URL",
      "service": "langfuse-web",
      "description": "Public base URL for auth callbacks",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NODE_OPTIONS",
      "service": "langfuse-web",
      "description": "Node heap ceiling for the container",
      "secret": false,
      "strategy": "default",
      "default": "--max-old-space-size=3072"
    },
    {
      "key": "CLICKHOUSE_DB",
      "service": "langfuse-web",
      "description": "ClickHouse database name",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "CLICKHOUSE_URL",
      "service": "langfuse-web",
      "description": "ClickHouse HTTP endpoint, private",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ENCRYPTION_KEY",
      "service": "langfuse-web",
      "description": "Encrypts stored LLM secrets, 64 hex",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "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": "Signs session cookies, keep stable",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "TELEMETRY_ENABLED",
      "service": "langfuse-web",
      "description": "Anonymous usage stats, set false to opt out",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "LANGFUSE_LOG_LEVEL",
      "service": "langfuse-web",
      "description": "Application log verbosity",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "AUTH_DISABLE_SIGNUP",
      "service": "langfuse-web",
      "description": "Set true after the first owner signs up",
      "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": "REDIS_CONNECTION_STRING",
      "service": "langfuse-web",
      "description": "Queue and cache, dual-stack DNS",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CLICKHOUSE_MIGRATION_URL",
      "service": "langfuse-web",
      "description": "Native endpoint for schema migrations",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "CLICKHOUSE_CLUSTER_ENABLED",
      "service": "langfuse-web",
      "description": "Single-node, no replicated tables",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LANGFUSE_CSP_ENFORCE_HTTPS",
      "service": "langfuse-web",
      "description": "Force HTTPS in content security policy",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_BUCKET",
      "service": "langfuse-web",
      "description": "Batch export bucket",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_PREFIX",
      "service": "langfuse-web",
      "description": "Key prefix for batch 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": "Raw ingestion event bucket",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_PREFIX",
      "service": "langfuse-web",
      "description": "Key prefix for ingestion events",
      "secret": false,
      "strategy": "default",
      "default": "events/"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_REGION",
      "service": "langfuse-web",
      "description": "Bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_BUCKET",
      "service": "langfuse-web",
      "description": "Multi-modal media bucket",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_PREFIX",
      "service": "langfuse-web",
      "description": "Key prefix for uploaded media",
      "secret": false,
      "strategy": "default",
      "default": "media/"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_REGION",
      "service": "langfuse-web",
      "description": "Bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_ENABLED",
      "service": "langfuse-web",
      "description": "Enable UI batch exports",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_ENDPOINT",
      "service": "langfuse-web",
      "description": "S3-compatible endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT",
      "service": "langfuse-web",
      "description": "S3-compatible endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_ENDPOINT",
      "service": "langfuse-web",
      "description": "Endpoint used for presigned browser uploads",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_ACCESS_KEY_ID",
      "service": "langfuse-web",
      "description": "Bucket access key id",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_ID",
      "service": "langfuse-web",
      "description": "Bucket access key id",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_ACCESS_KEY_ID",
      "service": "langfuse-web",
      "description": "Bucket access key id",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_FORCE_PATH_STYLE",
      "service": "langfuse-web",
      "description": "Path-style bucket addressing",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLE",
      "service": "langfuse-web",
      "description": "Path-style bucket addressing",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_FORCE_PATH_STYLE",
      "service": "langfuse-web",
      "description": "Path-style bucket addressing",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_EXTERNAL_ENDPOINT",
      "service": "langfuse-web",
      "description": "Endpoint used in download links",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_BATCH_EXPORT_SECRET_ACCESS_KEY",
      "service": "langfuse-web",
      "description": "Bucket secret access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEY",
      "service": "langfuse-web",
      "description": "Bucket secret access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFUSE_S3_MEDIA_UPLOAD_SECRET_ACCESS_KEY",
      "service": "langfuse-web",
      "description": "Bucket secret access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PORT",
      "service": "clickhouse",
      "description": "HTTP port the health check probes",
      "secret": false,
      "strategy": "default",
      "default": "8123"
    },
    {
      "key": "CLICKHOUSE_DB",
      "service": "clickhouse",
      "description": "Database Langfuse migrates into",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "CLICKHOUSE_USER",
      "service": "clickhouse",
      "description": "Database user created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "langfuse"
    },
    {
      "key": "CLICKHOUSE_PASSWORD",
      "service": "clickhouse",
      "description": "Generated database password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Private hostname, reachable only inside the project",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Standard Redis port",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Default ACL user created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Private connection string, use this from other services",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Convenience alias of the generated password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Generated password for the default user",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REDIS_PUBLIC_URL",
      "service": "Redis",
      "description": "Public connection string over the TCP proxy, for external tools",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Data directory, a subdirectory of the volume mount",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Private hostname, reachable only inside the project",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Standard PostgreSQL port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "libpq alias of the superuser name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "libpq alias of the default database",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "libpq alias of the superuser password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Private connection string, use this from other services",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Superuser created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "Validity window of the generated self-signed TLS certificate",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Generated superuser password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Postgres",
      "description": "Public connection string over the TCP proxy, for external tools",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Grace period for in-flight connections on redeploy",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "langfuse-observability"
      }
    },
    "cli": "railway deploy --template langfuse-observability",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "f3e1fde5-c210-4744-9862-70ac277277a0",
            "serializedConfig": {
              "buckets": {
                "929aa2b9-784b-45df-8e42-e85a143ac74e": {
                  "name": "langfuse"
                }
              },
              "services": {
                "4bdd02d5-db3f-4a2e-8c93-5c7ba3e9b126": {
                  "icon": "https://cdn.jsdelivr.net/gh/selfhst/icons/svg/langfuse.svg",
                  "name": "langfuse-worker",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "langfuse/langfuse-worker"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Worker HTTP port for health checks",
                      "defaultValue": "3030"
                    },
                    "SALT": {
                      "isOptional": false,
                      "description": "Must match the web service salt",
                      "defaultValue": "${{langfuse-web.SALT}}"
                    },
                    "HOSTNAME": {
                      "isOptional": false,
                      "description": "Bind address inside the container",
                      "defaultValue": "0.0.0.0"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Transactional Postgres connection string",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "NEXTAUTH_URL": {
                      "isOptional": false,
                      "description": "Public base URL, matches the web service",
                      "defaultValue": "https://${{langfuse-web.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NODE_OPTIONS": {
                      "isOptional": false,
                      "description": "Node heap ceiling for the container",
                      "defaultValue": "--max-old-space-size=3072"
                    },
                    "CLICKHOUSE_DB": {
                      "isOptional": false,
                      "description": "ClickHouse database name",
                      "defaultValue": "default"
                    },
                    "CLICKHOUSE_URL": {
                      "isOptional": false,
                      "description": "ClickHouse HTTP endpoint, private",
                      "defaultValue": "http://${{clickhouse.RAILWAY_PRIVATE_DOMAIN}}:8123"
                    },
                    "ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Must match the web service key",
                      "defaultValue": "${{langfuse-web.ENCRYPTION_KEY}}"
                    },
                    "CLICKHOUSE_USER": {
                      "isOptional": false,
                      "description": "ClickHouse username",
                      "defaultValue": "${{clickhouse.CLICKHOUSE_USER}}"
                    },
                    "TELEMETRY_ENABLED": {
                      "isOptional": false,
                      "description": "Anonymous usage stats, set false to opt out",
                      "defaultValue": "true"
                    },
                    "LANGFUSE_LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Application log verbosity",
                      "defaultValue": "info"
                    },
                    "CLICKHOUSE_PASSWORD": {
                      "isOptional": false,
                      "description": "ClickHouse password",
                      "defaultValue": "${{clickhouse.CLICKHOUSE_PASSWORD}}"
                    },
                    "REDIS_CONNECTION_STRING": {
                      "isOptional": false,
                      "description": "Queue and cache, dual-stack DNS",
                      "defaultValue": "${{Redis.REDIS_URL}}?family=0"
                    },
                    "CLICKHOUSE_MIGRATION_URL": {
                      "isOptional": false,
                      "description": "Native endpoint for schema migrations",
                      "defaultValue": "clickhouse://${{clickhouse.RAILWAY_PRIVATE_DOMAIN}}:9000"
                    },
                    "CLICKHOUSE_CLUSTER_ENABLED": {
                      "isOptional": false,
                      "description": "Single-node, no replicated tables",
                      "defaultValue": "false"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_BUCKET": {
                      "isOptional": false,
                      "description": "Batch export bucket",
                      "defaultValue": "${{langfuse.BUCKET}}"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_PREFIX": {
                      "isOptional": false,
                      "description": "Key prefix for batch exports",
                      "defaultValue": "exports/"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_REGION": {
                      "isOptional": false,
                      "description": "Bucket region",
                      "defaultValue": "${{langfuse.REGION}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_BUCKET": {
                      "isOptional": false,
                      "description": "Raw ingestion event bucket",
                      "defaultValue": "${{langfuse.BUCKET}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_PREFIX": {
                      "isOptional": false,
                      "description": "Key prefix for ingestion events",
                      "defaultValue": "events/"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_REGION": {
                      "isOptional": false,
                      "description": "Bucket region",
                      "defaultValue": "${{langfuse.REGION}}"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_BUCKET": {
                      "isOptional": false,
                      "description": "Multi-modal media bucket",
                      "defaultValue": "${{langfuse.BUCKET}}"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_PREFIX": {
                      "isOptional": false,
                      "description": "Key prefix for uploaded media",
                      "defaultValue": "media/"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_REGION": {
                      "isOptional": false,
                      "description": "Bucket region",
                      "defaultValue": "${{langfuse.REGION}}"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_ENABLED": {
                      "isOptional": false,
                      "description": "Enable scheduled batch exports",
                      "defaultValue": "true"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_ENDPOINT": {
                      "isOptional": false,
                      "description": "S3-compatible endpoint",
                      "defaultValue": "${{langfuse.ENDPOINT}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT": {
                      "isOptional": false,
                      "description": "S3-compatible endpoint",
                      "defaultValue": "${{langfuse.ENDPOINT}}"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_ENDPOINT": {
                      "isOptional": false,
                      "description": "Endpoint used for presigned browser uploads",
                      "defaultValue": "${{langfuse.ENDPOINT}}"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket access key id",
                      "defaultValue": "${{langfuse.ACCESS_KEY_ID}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket access key id",
                      "defaultValue": "${{langfuse.ACCESS_KEY_ID}}"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket access key id",
                      "defaultValue": "${{langfuse.ACCESS_KEY_ID}}"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_FORCE_PATH_STYLE": {
                      "isOptional": false,
                      "description": "Path-style bucket addressing",
                      "defaultValue": "true"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLE": {
                      "isOptional": false,
                      "description": "Path-style bucket addressing",
                      "defaultValue": "true"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_FORCE_PATH_STYLE": {
                      "isOptional": false,
                      "description": "Path-style bucket addressing",
                      "defaultValue": "true"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_EXTERNAL_ENDPOINT": {
                      "isOptional": false,
                      "description": "Endpoint used in download links",
                      "defaultValue": "${{langfuse.ENDPOINT}}"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret access key",
                      "defaultValue": "${{langfuse.SECRET_ACCESS_KEY}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret access key",
                      "defaultValue": "${{langfuse.SECRET_ACCESS_KEY}}"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret access key",
                      "defaultValue": "${{langfuse.SECRET_ACCESS_KEY}}"
                    }
                  }
                },
                "50fe6d39-1baf-43e9-93f3-385a445b8c47": {
                  "icon": "https://cdn.jsdelivr.net/gh/selfhst/icons/svg/langfuse.svg",
                  "name": "langfuse-web",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/public/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "langfuse/langfuse"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port, matches public target port",
                      "defaultValue": "3000"
                    },
                    "SALT": {
                      "isOptional": false,
                      "description": "Hashes API keys, keep stable",
                      "defaultValue": "{{SALT}}"
                    },
                    "HOSTNAME": {
                      "isOptional": false,
                      "description": "Bind address inside the container",
                      "defaultValue": "0.0.0.0"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Transactional Postgres connection string",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "NEXTAUTH_URL": {
                      "isOptional": false,
                      "description": "Public base URL for auth callbacks",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NODE_OPTIONS": {
                      "isOptional": false,
                      "description": "Node heap ceiling for the container",
                      "defaultValue": "--max-old-space-size=3072"
                    },
                    "CLICKHOUSE_DB": {
                      "isOptional": false,
                      "description": "ClickHouse database name",
                      "defaultValue": "default"
                    },
                    "CLICKHOUSE_URL": {
                      "isOptional": false,
                      "description": "ClickHouse HTTP endpoint, private",
                      "defaultValue": "http://${{clickhouse.RAILWAY_PRIVATE_DOMAIN}}:8123"
                    },
                    "ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Encrypts stored LLM secrets, 64 hex",
                      "defaultValue": "{{ENCRYPTION_KEY}}"
                    },
                    "CLICKHOUSE_USER": {
                      "isOptional": false,
                      "description": "ClickHouse username",
                      "defaultValue": "${{clickhouse.CLICKHOUSE_USER}}"
                    },
                    "NEXTAUTH_SECRET": {
                      "isOptional": false,
                      "description": "Signs session cookies, keep stable",
                      "defaultValue": "{{NEXTAUTH_SECRET}}"
                    },
                    "TELEMETRY_ENABLED": {
                      "isOptional": false,
                      "description": "Anonymous usage stats, set false to opt out",
                      "defaultValue": "true"
                    },
                    "LANGFUSE_LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Application log verbosity",
                      "defaultValue": "info"
                    },
                    "AUTH_DISABLE_SIGNUP": {
                      "isOptional": false,
                      "description": "Set true after the first owner signs up",
                      "defaultValue": "false"
                    },
                    "CLICKHOUSE_PASSWORD": {
                      "isOptional": false,
                      "description": "ClickHouse password",
                      "defaultValue": "${{clickhouse.CLICKHOUSE_PASSWORD}}"
                    },
                    "REDIS_CONNECTION_STRING": {
                      "isOptional": false,
                      "description": "Queue and cache, dual-stack DNS",
                      "defaultValue": "${{Redis.REDIS_URL}}?family=0"
                    },
                    "CLICKHOUSE_MIGRATION_URL": {
                      "isOptional": false,
                      "description": "Native endpoint for schema migrations",
                      "defaultValue": "clickhouse://${{clickhouse.RAILWAY_PRIVATE_DOMAIN}}:9000"
                    },
                    "CLICKHOUSE_CLUSTER_ENABLED": {
                      "isOptional": false,
                      "description": "Single-node, no replicated tables",
                      "defaultValue": "false"
                    },
                    "LANGFUSE_CSP_ENFORCE_HTTPS": {
                      "isOptional": false,
                      "description": "Force HTTPS in content security policy",
                      "defaultValue": "true"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_BUCKET": {
                      "isOptional": false,
                      "description": "Batch export bucket",
                      "defaultValue": "${{langfuse.BUCKET}}"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_PREFIX": {
                      "isOptional": false,
                      "description": "Key prefix for batch exports",
                      "defaultValue": "exports/"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_REGION": {
                      "isOptional": false,
                      "description": "Bucket region",
                      "defaultValue": "${{langfuse.REGION}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_BUCKET": {
                      "isOptional": false,
                      "description": "Raw ingestion event bucket",
                      "defaultValue": "${{langfuse.BUCKET}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_PREFIX": {
                      "isOptional": false,
                      "description": "Key prefix for ingestion events",
                      "defaultValue": "events/"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_REGION": {
                      "isOptional": false,
                      "description": "Bucket region",
                      "defaultValue": "${{langfuse.REGION}}"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_BUCKET": {
                      "isOptional": false,
                      "description": "Multi-modal media bucket",
                      "defaultValue": "${{langfuse.BUCKET}}"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_PREFIX": {
                      "isOptional": false,
                      "description": "Key prefix for uploaded media",
                      "defaultValue": "media/"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_REGION": {
                      "isOptional": false,
                      "description": "Bucket region",
                      "defaultValue": "${{langfuse.REGION}}"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_ENABLED": {
                      "isOptional": false,
                      "description": "Enable UI batch exports",
                      "defaultValue": "true"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_ENDPOINT": {
                      "isOptional": false,
                      "description": "S3-compatible endpoint",
                      "defaultValue": "${{langfuse.ENDPOINT}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT": {
                      "isOptional": false,
                      "description": "S3-compatible endpoint",
                      "defaultValue": "${{langfuse.ENDPOINT}}"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_ENDPOINT": {
                      "isOptional": false,
                      "description": "Endpoint used for presigned browser uploads",
                      "defaultValue": "${{langfuse.ENDPOINT}}"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket access key id",
                      "defaultValue": "${{langfuse.ACCESS_KEY_ID}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket access key id",
                      "defaultValue": "${{langfuse.ACCESS_KEY_ID}}"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket access key id",
                      "defaultValue": "${{langfuse.ACCESS_KEY_ID}}"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_FORCE_PATH_STYLE": {
                      "isOptional": false,
                      "description": "Path-style bucket addressing",
                      "defaultValue": "true"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLE": {
                      "isOptional": false,
                      "description": "Path-style bucket addressing",
                      "defaultValue": "true"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_FORCE_PATH_STYLE": {
                      "isOptional": false,
                      "description": "Path-style bucket addressing",
                      "defaultValue": "true"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_EXTERNAL_ENDPOINT": {
                      "isOptional": false,
                      "description": "Endpoint used in download links",
                      "defaultValue": "${{langfuse.ENDPOINT}}"
                    },
                    "LANGFUSE_S3_BATCH_EXPORT_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret access key",
                      "defaultValue": "${{langfuse.SECRET_ACCESS_KEY}}"
                    },
                    "LANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret access key",
                      "defaultValue": "${{langfuse.SECRET_ACCESS_KEY}}"
                    },
                    "LANGFUSE_S3_MEDIA_UPLOAD_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret access key",
                      "defaultValue": "${{langfuse.SECRET_ACCESS_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "8b441781-f92d-41b0-9bc4-d8c0781a6bd4": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/clickhouse.svg",
                  "name": "clickhouse",
                  "deploy": {
                    "startCommand": "/entrypoint.sh -- --logger.console=1 --logger.level=information",
                    "healthcheckPath": "/ping",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "clickhouse/clickhouse-server"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port the health check probes",
                      "defaultValue": "8123"
                    },
                    "CLICKHOUSE_DB": {
                      "isOptional": false,
                      "description": "Database Langfuse migrates into",
                      "defaultValue": "default"
                    },
                    "CLICKHOUSE_USER": {
                      "isOptional": false,
                      "description": "Database user created on first boot",
                      "defaultValue": "langfuse"
                    },
                    "CLICKHOUSE_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated database password",
                      "defaultValue": "{{CLICKHOUSE_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "8b441781-f92d-41b0-9bc4-d8c0781a6bd4": {
                      "mountPath": "/var/lib/clickhouse"
                    }
                  }
                },
                "a315edce-7a32-44a1-9472-9aecf397afb3": {
                  "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\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2.1"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Private hostname, reachable only inside the project",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Standard Redis port",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Default ACL user created on first boot",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private connection string, use this from other services",
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Convenience alias of the generated password",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated password for the default user",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    },
                    "REDIS_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public connection string over the TCP proxy, for external tools",
                      "defaultValue": "redis://default:${{REDIS_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}"
                    }
                  },
                  "volumeMounts": {
                    "a315edce-7a32-44a1-9472-9aecf397afb3": {
                      "mountPath": "/data"
                    }
                  },
                  "haTemplateCode": "redis-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxies",
                      "options": [
                        1,
                        2
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "HAProxy instances routing writes to the primary",
                      "defaultValue": 2
                    },
                    "replica": {
                      "label": "Redis Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "Redis",
                      "description": "Nodes running Redis + colocated Sentinel",
                      "defaultValue": 2
                    },
                    "internal": null,
                    "description": "This will convert your Redis instance to an HA cluster with Sentinel failover and HAProxy routing to the primary."
                  }
                },
                "ce0c52b0-51c0-414d-80bd-a2e8e5a1e4be": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Data directory, a subdirectory of the volume mount",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Private hostname, reachable only inside the project",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Standard PostgreSQL port",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "libpq alias of the superuser name",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "libpq alias of the default database",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "libpq alias of the superuser password",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Default database created on first boot",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private connection string, use this from other services",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Superuser created on first boot",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "Validity window of the generated self-signed TLS certificate",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated superuser password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public connection string over the TCP proxy, for external tools",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Grace period for in-flight connections on redeploy",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "ce0c52b0-51c0-414d-80bd-a2e8e5a1e4be": {
                      "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."
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "langfuse-web",
      "method": "GET",
      "path": "/api/public/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 5,
    "needs_volume": true
  },
  "generated_at": "2026-09-12T22:14:39.841Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-13T00:10:19.837Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_0fca564137cc4229bd09",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ]
  }
}
