feat: 更新快速开始指南,添加GitHub镜像部署步骤和配置说明
This commit is contained in:
1 parent
4ac2c8afd3
commit
d7e14f6324
3 files changed
+213
-19
No files matched your search
@@ -1,18 +1,38 @@
|
||||
# 快速开始
|
||||
|
||||
本指南将帮助您快速开始使用 License Manager。
|
||||
## GitHub 镜像快速部署指南
|
||||
|
||||
## 安装
|
||||
### 1. 获取部署文件
|
||||
|
||||
[安装说明内容]
|
||||
复制项目根目录的 `docker-compose.github.image.yml` 文件到你的部署目录:
|
||||
|
||||
## 配置
|
||||
```bash
|
||||
# 方式一:直接下载
|
||||
curl -O https://raw.githubusercontent.com/cedar-v/license-manager/main/docker-compose.github.image.yml
|
||||
|
||||
[配置说明内容]
|
||||
# 方式二:从项目中复制
|
||||
cp docker-compose.github.image.yml /your/deploy/path/
|
||||
```
|
||||
|
||||
## 使用示例
|
||||
### 2. 提取配置文件
|
||||
|
||||
[使用示例内容]
|
||||
```bash
|
||||
# 提取后端配置文件
|
||||
mkdir -p backend-config
|
||||
docker run --rm -v $(pwd)/backend-config:/tmp/config ghcr.io/cedar-v/license-manager-backend:v0.1.0 sh -c "cp -r /app/backend/configs/* /tmp/config/"
|
||||
|
||||
<!-- 注意:如果需要引用本地服务,请使用相对路径或在生产环境中使用实际的服务地址 -->
|
||||
<!-- 原本的 http://localhost:18080 和 http://localhost:18888 链接已移除 -->
|
||||
# 提取前端 nginx 配置文件
|
||||
docker run --rm -v $(pwd):/tmp/extract ghcr.io/cedar-v/license-manager-frontend:v0.1.0 sh -c "cp /etc/nginx/conf.d/default.conf /tmp/extract/nginx.conf"
|
||||
```
|
||||
|
||||
### 3. 启动服务
|
||||
|
||||
```bash
|
||||
docker-compose -f docker-compose.github.image.yml up
|
||||
```
|
||||
|
||||
## 访问信息
|
||||
|
||||
- **前端**: http://localhost:18080
|
||||
- **后端 API**: http://localhost:18888
|
||||
- **默认账号**: admin / admin@123
|
||||
Reference in new issue
Block a user