feat: 更新快速开始指南,移除本地服务链接并添加安装、配置和使用示例部分

This commit is contained in:
wood911010 committed 2025-10-24 23:10:49 +08:00
1 parent f62e5710ce
commit b96559420c
2 files changed
+19 -59

No files matched your search

+9 -29
View File
@@ -1,38 +1,18 @@
# 快速开始
## Docker 部署
本指南将帮助您快速开始使用 License Manager。
### 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/"
[使用示例内容]
# 提取前端 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
<!-- 注意:如果需要引用本地服务,请使用相对路径或在生产环境中使用实际的服务地址 -->
<!-- 原本的 http://localhost:18080 和 http://localhost:18888 链接已移除 -->