LobeHub Server 部署教程¶
Docker Compose 一键部署指南
前置条件¶
- Docker + Docker Compose 已安装
- Node.js 已安装(用于生成 JWKS 密钥)
- 端口 3210、9000、9001、5432、6379 未被占用
部署步骤¶
1. 创建部署目录并下载配置文件¶
mkdir -p ~/lobehub-server && cd ~/lobehub-server
curl -fsSL https://raw.githubusercontent.com/lobehub/lobe-chat/main/docker-compose/deploy/docker-compose.yml -o docker-compose.yml
curl -fsSL https://raw.githubusercontent.com/lobehub/lobe-chat/main/docker-compose/deploy/bucket.config.json -o bucket.config.json
curl -fsSL https://raw.githubusercontent.com/lobehub/lobe-chat/main/docker-compose/deploy/searxng-settings.yml -o searxng-settings.yml
2. 生成密钥并创建 .env 文件¶
KEY_VAULTS_SECRET=$(openssl rand -base64 32)
AUTH_SECRET=$(openssl rand -base64 32)
POSTGRES_PASSWORD=$(openssl rand -hex 12)
3. 启动服务¶
docker compose up -d
当前部署信息¶
| 项目 | 值 |
|---|---|
| 内网地址 | http://192.168.30.30:3210 |
| 外网地址 | https://lobe.lalayunssl.xyz |
| Compose 路径 | /volume1/docker/lobehub/ |
来源: sjchu/lobehub/LobeHub-部署迁移教程.md 导入时间: 2026-04-18