Documentation Index
Fetch the complete documentation index at: https://docs.xpertai.cn/llms.txt
Use this file to discover all available pages before exploring further.
背景说明
本篇将简述如何通过 docker run 或 docker-compose up 命令快速构建一套完整的XpertAI集群。适用场景
建议在 SIT 或者 DEV 环境中使用XpertAI Docker 容器来简化部署的流程。软件环境
| 软件 | 版本 |
|---|---|
| Docker | 20.0 及以上 |
| docker-compose | 2.10 及以上 |
标准版部署
请下载我们提供的安装脚本.env
- 将 INSTALLATION_MODE 值设置为 standalone
- 其他密码字段可重新设置
详细配置
Docker Compose 网络模式说明
XpertAI部署 Docker 适用的网络模式有两种:- 适合跨多节点部署的 HOST 模式,这种模式适合将不同服务部署到多个节点服务器上。
- 适合单节点部署多服务进程的 子网网桥模式,这种模式适合单节点部署多种服务的情况。
Docker Compose 脚本
部署XpertAI需要 5 个基本的服务,在文件docker-compose.yml 中定义了这些服务容器:
- db: 数据库服务, 使用 postgres 数据库
- redis: 服务端缓存服务, 使用 redis 数据库
- olap: OLAP 引擎服务, 使用 metad-olap 镜像
- api: 后端服务, 使用 ocap-api 镜像
- webapp: 前端服务, 使用 ocap-webapp 镜像