Levelrail
Skip to content

Self-host Lobe Chat with Docker ​

A modern, open-source AI chat framework supporting many model providers.

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

Project site: https://lobehub.com/docs/self-hosting/start.

Recommended memory: about 512 MiB.

Services, ports and volumes ​

ServiceImageContainer portsVolumes
lobe-chatlobehub/lobe-chat:1.135.53210none

Environment variables ​

ServiceVariableValue
lobe-chatACCESS_CODEGenerated at deploy
lobe-chatOPENAI_API_KEYPreset in the template
lobe-chatOPENAI_PROXY_URLPreset 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 Lobe Chat with Levelrail ​

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

With the CLI:

levelrail-cli templates deploy lobe-chat --name my-lobe-chat

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.