Levelrail
Skip to content

Self-host LibreChat with Docker ​

A self-hosted ChatGPT-style interface for many model providers, with agents, search, and multi-user login.

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

Project site: https://www.librechat.ai/docs.

Recommended memory: about 2048 MiB.

Services, ports and volumes ​

ServiceImageContainer portsVolumes
librechatghcr.io/danny-avila/librechat:v0.8.73080
librechat_images -> /app/client/public/images
meilisearchgetmeili/meilisearch:v1.54.0none
librechat_meili_data -> /meili_data
mongomongo:7none
librechat_mongo_data -> /data/db

Environment variables ​

ServiceVariableValue
librechatALLOW_REGISTRATIONPreset in the template
librechatCREDS_IVGenerated at deploy
librechatCREDS_KEYGenerated at deploy
librechatDOMAIN_CLIENTPreset in the template
librechatDOMAIN_SERVERPreset in the template
librechatHOSTPreset in the template
librechatJWT_REFRESH_SECRETGenerated at deploy
librechatJWT_SECRETGenerated at deploy
librechatMEILI_HOSTPreset in the template
librechatMEILI_MASTER_KEYGenerated at deploy
librechatMONGO_URIPreset in the template
librechatPORTPreset in the template
meilisearchMEILI_MASTER_KEYGenerated at deploy
meilisearchMEILI_NO_ANALYTICSPreset 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 LibreChat with Levelrail ​

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

With the CLI:

levelrail-cli templates deploy librechat --name my-librechat

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.