Levelrail
Skip to content

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 ​

ServiceImageContainer portsVolumes
clickhouseclickhouse/clickhouse-server:24.12-alpinenone
langfuse_clickhouse_data -> /var/lib/clickhouse
dbpostgres:16-alpinenone
langfuse_db_data -> /var/lib/postgresql/data
langfuse-weblangfuse/langfuse:3.225.113000none
langfuse-workerlangfuse/langfuse-worker:3.225.11nonenone
minioghcr.io/coollabsio/minio:RELEASE.2025-10-15T17-29-55Znone
langfuse_minio_data -> /data
redisredis:7-alpinenone
langfuse_redis_data -> /data

Environment variables ​

ServiceVariableValue
clickhouseCLICKHOUSE_PASSWORDGenerated at deploy
clickhouseCLICKHOUSE_USERPreset in the template
dbPOSTGRES_DBPreset in the template
dbPOSTGRES_PASSWORDGenerated at deploy
dbPOSTGRES_USERPreset in the template
langfuse-webCLICKHOUSE_CLUSTER_ENABLEDPreset in the template
langfuse-webCLICKHOUSE_MIGRATION_URLPreset in the template
langfuse-webCLICKHOUSE_PASSWORDGenerated at deploy
langfuse-webCLICKHOUSE_URLPreset in the template
langfuse-webCLICKHOUSE_USERPreset in the template
langfuse-webDATABASE_URLGenerated at deploy
langfuse-webENCRYPTION_KEYGenerated at deploy
langfuse-webLANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_IDPreset in the template
langfuse-webLANGFUSE_S3_EVENT_UPLOAD_BUCKETPreset in the template
langfuse-webLANGFUSE_S3_EVENT_UPLOAD_ENDPOINTPreset in the template
langfuse-webLANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLEPreset in the template
langfuse-webLANGFUSE_S3_EVENT_UPLOAD_REGIONPreset in the template
langfuse-webLANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEYGenerated at deploy
langfuse-webNEXTAUTH_SECRETGenerated at deploy
langfuse-webNEXTAUTH_URLPreset in the template
langfuse-webREDIS_HOSTPreset in the template
langfuse-webSALTGenerated at deploy
langfuse-workerCLICKHOUSE_CLUSTER_ENABLEDPreset in the template
langfuse-workerCLICKHOUSE_MIGRATION_URLPreset in the template
langfuse-workerCLICKHOUSE_PASSWORDGenerated at deploy
langfuse-workerCLICKHOUSE_URLPreset in the template
langfuse-workerCLICKHOUSE_USERPreset in the template
langfuse-workerDATABASE_URLGenerated at deploy
langfuse-workerENCRYPTION_KEYGenerated at deploy
langfuse-workerLANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_IDPreset in the template
langfuse-workerLANGFUSE_S3_EVENT_UPLOAD_BUCKETPreset in the template
langfuse-workerLANGFUSE_S3_EVENT_UPLOAD_ENDPOINTPreset in the template
langfuse-workerLANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLEPreset in the template
langfuse-workerLANGFUSE_S3_EVENT_UPLOAD_REGIONPreset in the template
langfuse-workerLANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEYGenerated at deploy
langfuse-workerREDIS_HOSTPreset in the template
langfuse-workerSALTGenerated at deploy
minioMINIO_ROOT_PASSWORDGenerated at deploy
minioMINIO_ROOT_USERPreset 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-langfuse

See 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.

Released under the Apache 2.0 License.