---
title: "Deploy Langfuse v3"
description: "Self-hosted LLM observability: tracing, evals & prompt management"
category: "Observability"
url: https://railway.com/deploy/langfuse-v3
---

# Deploy Langfuse v3

Self-hosted LLM observability: tracing, evals & prompt management

**[Deploy Langfuse v3 on Railway](https://railway.com/template/langfuse-v3)**

- **Creator:** INAPP
- **Category:** Observability

## Template content

### clickhouse

- **Image:** clickhouse/clickhouse-server:25.12

### postgres

- **Image:** postgres:17

### langfuse-worker

- **Source:** https://github.com/INAPP-Mobile/railway-langfuse-v3

### redis

- **Source:** https://github.com/INAPP-Mobile/railway-langfuse-v3

### minio

- **Image:** minio/minio:RELEASE.2025-09-07T16-13-09Z
- **Start command:** `sh -c 'mkdir -p /data/langfuse && minio server /data --address 0.0.0.0:9000 --console-address 0.0.0.0:9001'`
- **Public domain:** Yes

### langfuse-web

- **Source:** https://github.com/INAPP-Mobile/railway-langfuse-v3
- **Health check:** /
- **Public domain:** Yes

## Documentation

# Deploy and Host Langfuse

[![Deploy on Railway](https://railway.app/button.svg)](https://railway.com/deploy/langfuse-v3)

Langfuse is an open-source LLM observability platform — the self-hosted alternative to LangSmith. It gives you tracing, metrics, evals, and prompt management for your LLM applications in one place.

## About Hosting

This template deploys the production Langfuse v3 stack on Railway as a 6-service application:

| Service | Purpose |
|---------|---------|
| langfuse-web | Next.js app server (frontend + API), port 3000 |
| langfuse-worker | Background job processor |
| postgres | Primary database (`postgres:17` with pgvector) |
| clickhouse | Analytics database for event traces |
| redis | Cache + BullMQ job queue |
| minio | S3-compatible object storage for media and batch exports |

## Why Deploy

- **One-click setup** — every credential (Postgres, Redis, ClickHouse, MinIO, encryption keys) is auto-generated on first deploy.
- **Zero config** — services are wired together with Railway companion references; no manual URL or password plumbing.
- **Production-shaped** — persistent volumes on all stateful services, so your data survives redeploys.
- **Cost-effective** — a full LLM observability stack for roughly $8.50/mo on Railway's Hobby plan.

## Common Use Cases

- Tracing and debugging LLM agent/production calls (OpenAI, Anthropic, and any Langfuse SDK).
- Building evaluation pipelines over real production traces.
- Prompt versioning and management.
- Self-hosting your observability data instead of sending it to a SaaS vendor.

## Dependencies

This template provisions its own Postgres, ClickHouse, Redis, and MinIO — no external services required.

## Dependencies for

This template provisions all of its backing services itself — deployed together as a single project.

### Deployment Dependencies

- **Postgres** — provisioned in-project (persistent volume at `/var/lib/postgresql/data`)
- **ClickHouse** — provisioned in-project (persistent volume at `/var/lib/clickhouse`)
- **Redis** — provisioned in-project (persistent volume at `/data`)
- **MinIO** — provisioned in-project (persistent volume at `/data`)

No external databases, queues, or storage are required.

## Configuration

All environment variables are managed by Railway. On first deploy:

1. `ENCRYPTION_KEY` is auto-generated (64-char hex)
2. `NEXTAUTH_SECRET` and `SALT` are auto-generated
3. Database credentials are auto-generated per service
4. Redis password is auto-generated

## After Deploy

1. Open the web app at your Railway public domain.
2. Create your first organization and project.
3. Use the generated API keys to integrate Langfuse with your LLM applications.

## Storage

- **Postgres**: Persistent volume at `/var/lib/postgresql/data`
- **ClickHouse**: Persistent volume at `/var/lib/clickhouse`
- **Redis**: Persistent volume at `/data`
- **MinIO**: Persistent volume at `/data`

## Resource Estimates

| Service | Memory | Cost/mo |
|---------|--------|---------|
| langfuse-web | 512 MB | ~$2 |
| langfuse-worker | 512 MB | ~$2 |
| postgres | 256 MB | ~$1 |
| clickhouse | 512 MB | ~$2 |
| redis | 128 MB | ~$0.50 |
| minio | 256 MB | ~$1 |
| **Total** | **~2.2 GB** | **~$8.50** |

## Updating

To update Langfuse, redeploy with the new image tag. Database migrations run automatically on startup.

## License

Langfuse is MIT-licensed. See https://github.com/langfuse/langfuse for details.


## Similar templates

- [Pyroscope profiling](https://railway.com/deploy/pyroscope-profiling) — Protected continuous profiling with durable Pyroscope storage.
- [SigOnly](https://railway.com/deploy/sigonly) — Deploy SigNoz with a working demo app & config in one click
- [Unwrapped Spotify Music Stats](https://railway.com/deploy/wide-bold) — Unwrapped Spotify Music Stats, Estatísticas de músicas disponíveis

Open this page in a browser: https://railway.com/deploy/langfuse-v3
