docs: README 增加国内镜像部署章节(docker run + docker-compose 两种方式)
This commit is contained in:
1 parent
851d45a573
commit
3f4f3336c1
1 file changed
+43
@@ -343,3 +343,46 @@ For details, please see the [LICENSE](./LICENSE) file.
|
||||
- [XRoute](https://xroute.ai): The Unified Interface For LLMs, provides better prices, better throughput, and no subscription.
|
||||
|
||||
- [MemU](https://github.com/NevaMind-AI/memU): MemU is an open-source memory framework for AI companions
|
||||
|
||||
---
|
||||
|
||||
## 国内镜像部署(本项目维护,随 Release 更新)
|
||||
|
||||
镜像已双渠道发布,任选其一拉取:
|
||||
|
||||
- 公网:`gitea.88531.cn/jinghui/xpack-mcp-market:v1.5.0`、`jpccr.ccs.tencentyun.com/jinghui/xpack-mcp-market:v1.5.0`
|
||||
- 内网:`192.168.68.19:3200/jinghui/xpack-mcp-market:v1.5.0`
|
||||
|
||||
### 方式一:docker-compose(推荐,带齐全部服务参数)
|
||||
|
||||
```bash
|
||||
git clone http://192.168.68.19:3200/jinghui/xpack-mcp.git && cd xpack-mcp
|
||||
|
||||
# 1) 把 docker-compose.yml 中 xpack-mcp-market 服务的 image 改为公网镜像:
|
||||
# image: xpackai/xpack-mcp-market:zhcn
|
||||
# → image: gitea.88531.cn/jinghui/xpack-mcp-market:v1.5.0
|
||||
|
||||
# 2) 准备环境变量(支付渠道加密密钥,必须改掉示例值)
|
||||
cp .env.example .env && vim .env # 修改 PAYMENT_CONFIG_SECRET_KEY 为自己的 32 字节随机串
|
||||
|
||||
docker compose up -d # 启动 mysql/redis/rabbitmq/market 四个容器
|
||||
```
|
||||
|
||||
注意事项:
|
||||
- `PAYMENT_CONFIG_SECRET_KEY` 缺失时 compose 会直接报错拒绝启动(`.env` 不可删);
|
||||
- 数据库账号、Redis 密码、RabbitMQ 密码在 compose 里已固定,改任何一项都要同步改应用配置;
|
||||
- 数据目录 `./mysql-data` 与容器网络 `172.101.0.0/24` 不要与已有环境冲突。
|
||||
|
||||
### 方式二:docker run(主站单容器)
|
||||
|
||||
前置:MySQL 8.0.37 / Redis 7.2.4 / RabbitMQ 4.1.2 已就绪,且容器与依赖服务同一网络(应用默认按主机名 `xpack-mysql`、`xpack-redis`、`xpack-rabbitmq` 连接)。
|
||||
|
||||
```bash
|
||||
docker run -d --name xpack-mcp-market \
|
||||
--restart always --privileged \
|
||||
-p 8010:80 \
|
||||
-e PAYMENT_CONFIG_SECRET_KEY='<32字节随机串>' \
|
||||
-e PAYMENT_CONFIG_KEY_ID=default \
|
||||
--network <依赖服务所在网络> \
|
||||
gitea.88531.cn/jinghui/xpack-mcp-market:v1.5.0
|
||||
```
|
||||
Reference in new issue
Block a user