Levelrail
Skip to content

Self-host Langflow with Docker ​

A visual low-code tool for building and deploying multi-agent and RAG workflows in Python.

This page describes the Levelrail template for Langflow (AI). It deploys the services below as one Docker Compose app on your own server.

Project site: https://docs.langflow.org.

Recommended memory: about 2048 MiB.

Services, ports and volumes ​

ServiceImageContainer portsVolumes
dbpostgres:16-alpinenone
langflow_db_data -> /var/lib/postgresql/data
langflowlangflowai/langflow:1.12.37860
langflow_data -> /app/langflow

Environment variables ​

ServiceVariableValue
dbPOSTGRES_DBPreset in the template
dbPOSTGRES_PASSWORDGenerated at deploy
dbPOSTGRES_USERPreset in the template
langflowLANGFLOW_AUTO_LOGINPreset in the template
langflowLANGFLOW_CONFIG_DIRPreset in the template
langflowLANGFLOW_DATABASE_URLGenerated at deploy
langflowLANGFLOW_SUPERUSERPreset in the template
langflowLANGFLOW_SUPERUSER_PASSWORDGenerated at deploy

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 Langflow with Levelrail ​

In the dashboard, open Apps, choose New app, then Browse templates, and select Langflow. Review the Compose body and deploy.

With the CLI:

levelrail-cli templates deploy langflow --name my-langflow

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.