feat: add public purchase portal and admin tools
This commit is contained in:
1 parent
c0a6ee3cb0
commit
eb1f68b423
29 files changed
+2851
-163
No files matched your search
@@ -0,0 +1,35 @@
|
||||
# Docker 镜像推送说明
|
||||
|
||||
项目已经补充了镜像推送脚本 `scripts/docker-push.sh`,默认面向本地 Gitea/私有仓库地址 `localhost:9988`。
|
||||
|
||||
## 1. 登录镜像仓库
|
||||
|
||||
```bash
|
||||
docker login localhost:9988
|
||||
```
|
||||
|
||||
如果你的镜像仓库命名空间不是 `leeexin`,推送前修改环境变量 `NAMESPACE`。
|
||||
|
||||
## 2. 构建并推送镜像
|
||||
|
||||
```bash
|
||||
chmod +x scripts/docker-push.sh
|
||||
REGISTRY=localhost:9988 NAMESPACE=leeexin VERSION=v1.1.1 ./scripts/docker-push.sh
|
||||
```
|
||||
|
||||
推送完成后会得到两份镜像:
|
||||
|
||||
- `localhost:9988/leeexin/license-manager-backend:v1.1.1`
|
||||
- `localhost:9988/leeexin/license-manager-frontend:v1.1.1`
|
||||
|
||||
## 3. 使用推送后的镜像部署
|
||||
|
||||
```bash
|
||||
REGISTRY=localhost:9988 NAMESPACE=leeexin VERSION=v1.1.1 docker compose -f docker-compose.registry.yml up -d
|
||||
```
|
||||
|
||||
## 4. 支付配置提醒
|
||||
|
||||
- 生产环境镜像启动时,支付配置以 `backend/configs/config.prod.yaml` 为准。
|
||||
- 当前已经保留支付宝正式环境字段,请把 `app_id`、密钥、回调域名替换为你的正式配置。
|
||||
- 免登录购买与续期入口为 `/public-renewal`,支付成功后可通过授权码查询和续期结果页面查看状态。
|
||||
Reference in new issue
Block a user