dev_1.0.0_xuxt_2 更新反向代理,打包镜像,以及README文档 (#28)
Co-authored-by: xiuting.xu <xiutingxt.xu@gmail.com> Reviewed-on: #28 Reviewed-by: yuyr <yuyr@zgclab.edu.cn> Reviewed-by: huhy <husteryezi@163.com> Reviewed-by: sundapeng <sundp@mail.zgclab.edu.cn>
This commit was merged in pull request #28.
This commit is contained in:
@@ -1,12 +1,34 @@
|
||||
# Argus-web
|
||||
|
||||
架构:React + Vite + Mantine
|
||||
前端页面架构:React + Vite + Mantine
|
||||
|
||||
该模块分为两个部分,argus-web-frontend和argus-web-proxy。其中argus-web-frontend负责前端页面展示,argus-web-proxy负责反向代理,实现对其他网站的反向代理功能
|
||||
|
||||
## 打包部署
|
||||
## 构建
|
||||
在构建前需要设置构建和部署的环境变量。根目录下运行:
|
||||
```bash
|
||||
cp src/web/tests/.env.example src/web/tests/.env
|
||||
```
|
||||
修改.env的内容。
|
||||
|
||||
### argus-web-frontend
|
||||
根目录下运行
|
||||
```bash
|
||||
bash src/web/buld_tools/frontend/build.sh
|
||||
```
|
||||
构建成功后,会在根目录下有一个打包好的tar包argus-web-frontend-latest.tar。
|
||||
|
||||
### argus-web-proxy
|
||||
根目录下运行
|
||||
```bash
|
||||
bash src/web/build_tools/proxy/build.sh
|
||||
```
|
||||
构建成功后,会在根目录下有一个打包好的tar包argus-web-proxy-latest.tar。
|
||||
|
||||
## 部署
|
||||
|
||||
提供docker-compose部署。在src/web/tests目录下
|
||||
```bash
|
||||
docker-compose up -d
|
||||
```
|
||||
会同时启动argus-web-frontend和argus-web-proxy两个容器服务。
|
||||
|
||||
Reference in New Issue
Block a user