Deploy Langfuse v4.1.0 (Production ready AI Observability)
Open-source LLM platform for prompt management, tracing, evals & metrics
redis
Just deployed
/bitnami
langfuse-worker
Just deployed
Just deployed
/var/lib/postgresql/data
clickhouse
Just deployed
/var/lib/clickhouse
minio
Just deployed
/data
langfuse-web
Just deployed
Deploy and Host Langfuse v4 with Railway
Langfuse is an open-source LLM engineering platform that helps teams collaboratively debug, analyze, and iterate on their LLM applications. This template deploys a production-ready Langfuse v4 stack on Railway with web, worker, and the required data services.
About Hosting Langfuse
Hosting Langfuse v4 means running two application containers—langfuse-web and langfuse-worker—plus four infrastructure dependencies: PostgreSQL for transactional data, ClickHouse for high-volume observability analytics, Redis for caching and queues, and S3-compatible object storage (MinIO) for event uploads and large payloads. Traces are ingested via the web service, queued through Redis/object storage, then processed by the worker into ClickHouse. Railway wires private networking and volumes so the full stack comes up as one connected project with a public URL for the Langfuse UI and API.
Why Deploy Langfuse on Railway
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying Langfuse on Railway, you are one step closer to supporting a complete full-stack LLM application with minimal burden. Host your observability backend, databases, workers, object storage, and related AI tooling on one platform instead of stitching multiple cloud services together.
Common Use Cases
- LLM application observability — Instrument your app and ingest traces to track LLM calls plus retrieval, embedding, and agent actions; inspect complex logs and user sessions.
- Prompt management — Centrally manage, version, and collaboratively iterate on prompts with strong server/client caching so updates don’t add latency.
- Evaluations — Run LLM-as-a-judge, collect user feedback, label manually, or build custom eval pipelines via APIs/SDKs.
- Datasets & experiments — Maintain test sets and benchmarks for pre-deployment testing, continuous improvement, and framework integrations (LangChain, LlamaIndex, and more).
- LLM playground & custom LLMOps — Iterate on prompts and model configs from bad traces, or power bespoke workflows using Langfuse’s API, OpenAPI spec, and typed Python / JS/TS SDKs.
Dependencies for Langfuse Hosting
This template includes the full Langfuse v4 self-hosted architecture:
- Langfuse Web (
langfuse/langfuse:4) — UI, API, and ingestion endpoint - Langfuse Worker (
langfuse/langfuse-worker:4) — async processing of queued traces and jobs - PostgreSQL (≥ 15, 16 recommended) — OLTP / transactional data (users, projects, prompts, datasets)
- ClickHouse (≥ 25.12, 26.4 recommended for v4) — OLAP store for traces, observations, and scores
- Redis (≥ 7.0, 7.2 recommended) — cache and queue (prefer official
redis:7over Bitnami on Railway) - MinIO (S3-compatible) — blob storage for event uploads, multi-modal inputs, and large exports
Deployment Dependencies
- Langfuse self-hosting overview
- Langfuse v4 containers (web & worker)
- Upgrade guide: Langfuse v3 → v4
- Langfuse on Railway (docs)
- Railway: Langfuse LLM observability guide
- ClickHouse requirements for v4
- Langfuse GitHub
- Langfuse documentation
Implementation Details
After deploy:
Open the public URL on langfuse-web and create your first account/org.
Template Content
redis
redis:8.2.1langfuse-worker
langfuse/langfuse-worker:4.1.0clickhouse
clickhouse/clickhouse-server:26.4minio
minio/miniolangfuse-web
langfuse/langfuse:4.1.0
