LibreChat
LibreChat
Docker app from pureelectricity's Repository
Overview
LibreChat: Enhanced ChatGPT Clone. Features: Agents, Anthropic, AWS, OpenAI, Azure, Gemini, AI model switching, message search, langchain, DALL-E-3, Multi-User Auth, and more.
PREREQUISITES:
- You must have a MongoDB container running (e.g., the official mongo docker).
- You must generate random hex strings for the CREDS_KEY, CREDS_IV, and JWT_SECRET below, or logins will fail.
CONFIGURATION:
- This template uses Environment Variables for config.
- The 'librechat.yaml' file is optional and not mapped by default to prevent boot errors. If you need advanced configuration (custom endpoints), create the file on your server first, then add a Host Path mapping manually: /mnt/user/appdata/librechat/librechat.yaml -> /app/librechat.yaml
Runtime arguments
- Web UI
http://[IP]:[PORT:3080]/- Network
bridge- Shell
sh- Privileged
- false
Template configuration
The port to access the LibreChat interface.
- Target
- 3080
- Default
- 3080
Required for Docker networking.
- Target
- HOST
- Default
- 0.0.0.0
The URL used to access the app. MUST include http:// or https://.
- Target
- DOMAIN_CLIENT
- Default
- http://[IP]:[PORT:3080]
Usually the same as Client Domain.
- Target
- DOMAIN_SERVER
- Default
- http://[IP]:[PORT:3080]
Required. Format: mongodb://[IP]:27017/LibreChat
- Target
- MONGO_URI
Required. 64-character hex string. Run 'openssl rand -hex 32' to generate.
- Target
- CREDS_KEY
Required. 32-character hex string. Run 'openssl rand -hex 16' to generate.
- Target
- CREDS_IV
Required. Long random string for signing tokens.
- Target
- JWT_SECRET
Required. Long random string for refresh tokens.
- Target
- JWT_REFRESH_SECRET
Optional. If set to 'user_provided', users can enter their own key in the UI.
- Target
- OPENAI_API_KEY
- Default
- user_provided
Persist uploaded images and avatars.
- Target
- /app/client/public/images
- Default
- /mnt/user/appdata/librechat/images
Container logs.
- Target
- /app/logs
- Default
- /mnt/user/appdata/librechat/logs
Set to 'true' only if you have a separate MeiliSearch container running for chat history search.
- Target
- SEARCH
- Default
- false
http://[IP]:7700
- Target
- MEILI_HOST
The master key from your MeiliSearch container.
- Target
- MEILI_MASTER_KEY
Unraid Default User ID
- Default
- 99
Unraid Default Group ID
- Default
- 100
Categories
Details
ghcr.io/danny-avila/librechat:latestRun LibreChat on Unraid.
LibreChat is listed in Community Apps for Unraid OS. Explore Unraid to build a flexible home server, NAS, or homelab.