feat: 更新快速开始指南,移除本地服务链接并添加安装、配置和使用示例部分
This commit is contained in:
1 parent
f62e5710ce
commit
b96559420c
2 files changed
+19
-59
No files matched your search
@@ -1,38 +1,18 @@
|
||||
# 快速开始
|
||||
# Getting Started
|
||||
|
||||
## Docker 部署
|
||||
This guide will help you get started with License Manager quickly.
|
||||
|
||||
### 1. 获取部署文件
|
||||
## Installation
|
||||
|
||||
复制项目根目录的 `docker-compose.github.image.yml` 文件到你的部署目录:
|
||||
[Installation instructions]
|
||||
|
||||
```bash
|
||||
# 方式一:直接下载
|
||||
curl -O https://raw.githubusercontent.com/cedar-v/license-manager/main/docker-compose.github.image.yml
|
||||
## Configuration
|
||||
|
||||
# 方式二:从项目中复制
|
||||
cp docker-compose.github.image.yml /your/deploy/path/
|
||||
```
|
||||
[Configuration details]
|
||||
|
||||
### 2. 提取配置文件
|
||||
## Usage Examples
|
||||
|
||||
```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/"
|
||||
[Usage examples]
|
||||
|
||||
# 提取前端 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
|
||||
<!-- Note: Local server links http://localhost:18080 and http://localhost:18888 have been removed -->
|
||||
<!-- Use relative paths or actual production URLs instead -->
|
||||
Reference in new issue
Block a user