From f5b45af30a88aaa2d78485fd33530e4467419970 Mon Sep 17 00:00:00 2001 From: jinghui Date: Fri, 13 Nov 2026 22:07:52 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20README=20=E5=A2=9E=E5=8A=A0=E5=9B=BD?= =?UTF-8?q?=E5=86=85=E9=95=9C=E5=83=8F=E9=83=A8=E7=BD=B2=E7=AB=A0=E8=8A=82?= =?UTF-8?q?=EF=BC=88docker=20run=20+=20docker-compose=20=E4=B8=A4=E7=A7=8D?= =?UTF-8?q?=E6=96=B9=E5=BC=8F=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/README.md b/README.md index 93208e3..d163abd 100644 --- a/README.md +++ b/README.md @@ -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 +```