bash <(curl -fsSL https://lobe.li/setup.sh) -l zh_CN ------------------------------------------------------------------------ 请选择部署模式: (0) 域名模式(访问时无需指明端口),需要使用反向代理服务 LobeChat, MinIO, Casdoor ,并分别分配一个域名; (1) 端口模式(访问时需要指明端口,如使用IP访问,或域名+端口访问),需要放开指定端口; (2) 本地模式(仅供本地测试使用) 如果你对这些内容疑惑,可以先选择使用本地模式进行部署,稍后根据文档指引再进行修改。 https://lobehub.com/docs/self-hosting/server-database/docker-compose (0,1,2) [2]: ✔ 已更新部署模式配置 是否要重新生成安全密钥? (y/n) [y]: y 重新生成安全密钥... sed: 保留 “./sedFbmd0O” 的权限未改变: 不允许的操作 sed: 保留 “./sed3tbm4N” 的权限未改变: 不允许的操作 sed: 保留 “./sedWybPDh” 的权限未改变: 不允许的操作 sed: 保留 “./sedKR9NZl” 的权限未改变: 不允许的操作 是否初始化数据库? (y/n) [y]: WARN[0000] The "LOBE_PID" variable is not set. Defaulting to a blank string. WARN[0000] The "MINIO_PID" variable is not set. Defaulting to a blank string. [+] Pulling 23/27 ⠸ searxng [⣿⣿⣿⣿⣄⣿⣿⣿] 31.06MB / 64.08MB Pulling 207.4s ✔ 0a9a5dfd008f Already exists 0.0s ✔ d2e47e94cad8 Pull complete 0.5s ✔ 4f4fb700ef54 Pull complete 0.6s ✔ 4ff7c58cb6ff Pull complete 0.9s ⠇ a7b2a09b9240 Downloading 201.8s ✔ 0f9f2d3e9991 Download complete 1.3s ✔ 483a5d584a14 Download complete 2.6s ✔ ef65f046938e Download complete 3.5s ✔ postgresql Pulled 5.0s ✔ minio Pulled 5.0s ⠸ lobe [⣿] 137.8MB / 137.8MB Pulling 207.4s ⠸ c05036904708 Downloading 202.3s ✔ network-service Pulled 5.5s ✔ casdoor Pulled 26.6s ✔ f18232174bc9 Already exists 0.0s ✔ 41b6b3636fa7 Pull complete 2.7s ✔ 3ad6e5807995 Pull complete 4.4s ✔ 503a7ba662c4 Pull complete 5.1s ✔ 4b659a845e38 Pull complete 6.0s ✔ 5e66a7d6ae4b Pull complete 6.8s ✔ 30e6fc5df648 Pull complete 7.1s ✔ 19c2ee8e1db1 Pull complete 11.9s ✔ a5b63f829ac9 Pull complete 16.0s ✔ 508474ffa88c Pull complete 16.4s ✔ 7d6eb95fc9e8 Pull complete 16.8s ✔ b05faa8af682 Pull complete 19.8s Get "https://registry-1.docker.io/v2/": EOF WARN[0000] The "LOBE_PID" variable is not set. Defaulting to a blank string. WARN[0000] The "MINIO_PID" variable is not set. Defaulting to a blank string. [+] Running 3/3 ✘ Container lobe-postgres Error 1.5s ✔ Container lobe-network Started 0.4s ✔ Container lobe-casdoor Created 0.0s dependency failed to start: container lobe-postgres is unhealthy WARN[0000] The "MINIO_PID" variable is not set. Defaulting to a blank string. WARN[0000] The "LOBE_PID" variable is not set. Defaulting to a blank string. [+] Stopping 4/4 ✔ Container lobe-searxng Stopped 0.0s ✔ Container lobe-casdoor Stopped 0.0s ✔ Container lobe-network Stopped 10.3s ✔ Container lobe-postgres Stopped 0.0s 安全密钥生成结果如下: LobeChat: - URL: http://localhost:3210 - Username: user - Password: 82660162e1 Casdoor: - URL: http://localhost:8000 - Username: admin - Password: 82660162e1 Minio: - URL: http://localhost:9000 - Username: admin - Password: ffd87bb2 您已经完成了所有配置。请运行以下命令启动LobeChat: docker compose up -d 请确保服务器以下端口未被占用且能被访问:3210, 9000, 9001, 8000 完整的环境变量在'.env'中可以在文档中找到:https://lobehub.com/zh/docs/self-hosting/environment-variables -------------------------------------------------------------------------------------------------- docker compose up -d -------------------------------------------------------------------------------------------------- WARN[0000] The "LOBE_PID" variable is not set. Defaulting to a blank string. WARN[0000] The "MINIO_PID" variable is not set. Defaulting to a blank string. [+] Running 2/2 ✔ lobe Pulled 64.3s ✔ be29f3cc35ee Pull complete 31.8s [+] Running 5/5 ✘ Container lobe-postgres Error 2.4s ✔ Container lobe-searxng Started 1.8s ✔ Container lobe-network Started 1.8s ✔ Container lobe-minio Started 2.0s ✔ Container lobe-chat Created 0.1s dependency failed to start: container lobe-postgres is unhealthy