Files
LangBot/zh/deploy/langbot/docker.mdx
T
Xiaoyu SuandJunyan Chin 310c566148 refactor: migration to mintlify
* 重构文档结构:移除 docs 目录,调整文件组织结构

* Reorder "插件 SDK API" section in docs.json

* Refactor and clarify various documentation sections

* Refine warnings and info boxes across multiple docs

* Refactor and simplify Japanese documentation content

* Update package.json to include mintlify as a dependency and add pnpm-lock.yaml for dependency management

* Update blog link and add description in docs.json

---------

Co-authored-by: Junyan Chin <[email protected]>
2026-02-21 23:55:53 +08:00

42 lines
1.3 KiB
Plaintext

---
title: "Docker部署"
---
<Warning>
您需要提前了解:
- `Docker` 和 `Docker Compose` 的使用
- Docker 容器间网络通信配置方式
</Warning>
<Info>
- 推荐使用[阿里云,服务器价格低至 38 元一年,更可以享受8折优惠](https://www.aliyun.com/minisite/goods?userCode=ys4ad8gs)
</Info>
Git 克隆本项目:
```bash
git clone https://github.com/langbot-app/LangBot
cd LangBot/docker
```
启动容器:
```bash
docker compose up
```
<Info>
- 如果你的主机位于中国大陆,可以考虑把 `docker-compose.yaml` 文件中的镜像名称改为`docker.langbot.app/langbot-public/rockchin/langbot:latest`以使用我们提供的镜像源。
- 推荐[设置 Docker 容器代理](https://docker.github.net.cn/network/proxy/),以便保证 LangBot 在运行期间的网络访问通畅。
</Info>
首次启动会输出创建配置文件的提示,请继续按照文件配置。
容器会映射`5300`端口供 WebUI 使用,您可以访问`http://127.0.0.1:5300`查看 WebUI。\
还会映射`2280-2290`端口供使用 OneBot 协议的消息平台适配器反向连接。
完成 LangBot 部署后,请继续阅读:
- [配置机器人文档](/zh/deploy/platforms/readme)。
- [配置模型文档](/zh/deploy/models/readme)。