Self-host Langfuse with Docker
Trace, evaluate, and debug LLM applications with prompt management and cost analytics.
This page describes the Levelrail template for Langfuse (AI). It deploys the services below as one Docker Compose app on your own server.
Project site: https://langfuse.com/self-hosting.Recommended memory: about 4096 MiB.
Services, ports and volumes
| Service | Image | Container ports | Volumes |
|---|---|---|---|
clickhouse | clickhouse/clickhouse-server:24.12-alpine | none | langfuse_clickhouse_data -> /var/lib/clickhouse |
db | postgres:16-alpine | none | langfuse_db_data -> /var/lib/postgresql/data |
langfuse-web | langfuse/langfuse:3.225.11 | 3000 | none |
langfuse-worker | langfuse/langfuse-worker:3.225.11 | none | none |
minio | ghcr.io/coollabsio/minio:RELEASE.2025-10-15T17-29-55Z | none | langfuse_minio_data -> /data |
redis | redis:7-alpine | none | langfuse_redis_data -> /data |
Environment variables
| Service | Variable | Value |
|---|---|---|
clickhouse | CLICKHOUSE_PASSWORD | Generated at deploy |
clickhouse | CLICKHOUSE_USER | Preset in the template |
db | POSTGRES_DB | Preset in the template |
db | POSTGRES_PASSWORD | Generated at deploy |
db | POSTGRES_USER | Preset in the template |
langfuse-web | CLICKHOUSE_CLUSTER_ENABLED | Preset in the template |
langfuse-web | CLICKHOUSE_MIGRATION_URL | Preset in the template |
langfuse-web | CLICKHOUSE_PASSWORD | Generated at deploy |
langfuse-web | CLICKHOUSE_URL | Preset in the template |
langfuse-web | CLICKHOUSE_USER | Preset in the template |
langfuse-web | DATABASE_URL | Generated at deploy |
langfuse-web | ENCRYPTION_KEY | Generated at deploy |
langfuse-web | LANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_ID | Preset in the template |
langfuse-web | LANGFUSE_S3_EVENT_UPLOAD_BUCKET | Preset in the template |
langfuse-web | LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT | Preset in the template |
langfuse-web | LANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLE | Preset in the template |
langfuse-web | LANGFUSE_S3_EVENT_UPLOAD_REGION | Preset in the template |
langfuse-web | LANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEY | Generated at deploy |
langfuse-web | NEXTAUTH_SECRET | Generated at deploy |
langfuse-web | NEXTAUTH_URL | Preset in the template |
langfuse-web | REDIS_HOST | Preset in the template |
langfuse-web | SALT | Generated at deploy |
langfuse-worker | CLICKHOUSE_CLUSTER_ENABLED | Preset in the template |
langfuse-worker | CLICKHOUSE_MIGRATION_URL | Preset in the template |
langfuse-worker | CLICKHOUSE_PASSWORD | Generated at deploy |
langfuse-worker | CLICKHOUSE_URL | Preset in the template |
langfuse-worker | CLICKHOUSE_USER | Preset in the template |
langfuse-worker | DATABASE_URL | Generated at deploy |
langfuse-worker | ENCRYPTION_KEY | Generated at deploy |
langfuse-worker | LANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_ID | Preset in the template |
langfuse-worker | LANGFUSE_S3_EVENT_UPLOAD_BUCKET | Preset in the template |
langfuse-worker | LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT | Preset in the template |
langfuse-worker | LANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLE | Preset in the template |
langfuse-worker | LANGFUSE_S3_EVENT_UPLOAD_REGION | Preset in the template |
langfuse-worker | LANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEY | Generated at deploy |
langfuse-worker | REDIS_HOST | Preset in the template |
langfuse-worker | SALT | Generated at deploy |
minio | MINIO_ROOT_PASSWORD | Generated at deploy |
minio | MINIO_ROOT_USER | Preset in the template |
Passwords and keys marked as generated are created for you when the app is deployed and stored as secrets. Values are not shown here.
Deploy Langfuse with Levelrail
In the dashboard, open Apps, choose New app, then Browse templates, and select Langfuse. Review the Compose body and deploy.
With the CLI:
levelrail-cli templates deploy langfuse --name my-langfuseSee Service template catalog for how templates work, and Getting started if you have not installed Levelrail yet.
More AI templates
All templates are listed in the self-host gallery.