LibreChat

LibreChat

Docker 应用程序 from pureelectricity's Repository

概述

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:

  1. You must have a MongoDB container running (e.g., the official mongo docker).
  2. 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

运行时参数

网络用户界面
http://[IP]:[PORT:3080]/
网络
bridge
外壳
sh
特权
false

模板配置

WebUI PortPorttcp

The port to access the LibreChat interface.

目标
3080
默认值
3080
Host BindingVariable

Required for Docker networking.

目标
HOST
默认值
0.0.0.0
Client DomainVariable

The URL used to access the app. MUST include http:// or https://.

目标
DOMAIN_CLIENT
默认值
http://[IP]:[PORT:3080]
Server DomainVariable

Usually the same as Client Domain.

目标
DOMAIN_SERVER
默认值
http://[IP]:[PORT:3080]
MongoDB URIVariable

Required. Format: mongodb://[IP]:27017/LibreChat

目标
MONGO_URI
Crypto KeyVariable

Required. 64-character hex string. Run 'openssl rand -hex 32' to generate.

目标
CREDS_KEY
Crypto IVVariable

Required. 32-character hex string. Run 'openssl rand -hex 16' to generate.

目标
CREDS_IV
JWT SecretVariable

Required. Long random string for signing tokens.

目标
JWT_SECRET
JWT Refresh SecretVariable

Required. Long random string for refresh tokens.

目标
JWT_REFRESH_SECRET
OpenAI API KeyVariable

Optional. If set to 'user_provided', users can enter their own key in the UI.

目标
OPENAI_API_KEY
默认值
user_provided
Image StoragePathrw

Persist uploaded images and avatars.

目标
/app/client/public/images
默认值
/mnt/user/appdata/librechat/images
LogsPathrw

Container logs.

目标
/app/logs
默认值
/mnt/user/appdata/librechat/logs
Install MeiliSearchVariable

Set to 'true' only if you have a separate MeiliSearch container running for chat history search.

目标
SEARCH
默认值
false
MeiliSearch HostVariable

http://[IP]:7700

目标
MEILI_HOST
MeiliSearch KeyVariable

The master key from your MeiliSearch container.

目标
MEILI_MASTER_KEY
UIDVariable

Unraid Default User ID

默认值
99
GIDVariable

Unraid Default Group ID

默认值
100

详细信息

存储库
ghcr.io/danny-avila/librechat:latest
最后更新2026-06-02
初见2025-09-01

在Unraid 上运行 LibreChat 。

LibreChat 已被列入Unraid OS 的社区应用程序。探索Unraid ,构建灵活的家庭服务器、NAS 或家庭实验室。