docker快速启动项目

This commit is contained in:
zhangdaiscott
2022-07-21 15:41:21 +08:00
parent e2af6826b4
commit c0a95521e4
2 changed files with 30 additions and 25 deletions

View File

@ -56,6 +56,31 @@ yarn run build
yarn run lint
```
Docker镜像启动前端单体模式
----
```
# 1.配置host
127.0.0.1 jeecg-boot-system
# 2.修改前端项目的后台域名
.env.development
域名改成: http://jeecg-boot-system:8080/jeecg-boot
# 3.进入项目根目录,执行打包命令
yarn run build
# 4.构建镜像
docker build -t jeecgboot-ui2 .
# 5.启动镜像
docker run --name jeecgboot-ui-vue2 -p 80:80 -d jeecgboot-ui2
# 6.访问前台项目
http://localhost
```
其他说明
@ -106,28 +131,3 @@ yarn run lint
> @vue/cli 升级后eslint 规则更新了。由于影响到全部 .vue 文件,需要逐个验证。既暂时关闭部分原本不验证的规则,后期维护时,在逐步修正这些 rules
Docker镜像启动
----
```
# 1.配置host
127.0.0.1 jeecg-boot-redis
127.0.0.1 jeecg-boot-mysql
127.0.0.1 jeecg-boot-system
# 2.修改前端项目的后台域名
.env.development
域名改成: http://jeecg-boot-system:8080/jeecg-boot
# 3.进入项目根目录,执行打包命令
yarn run build
# 4.构建镜像
docker build -t jeecgboot-ui2 .
# 5.启动镜像
docker run --name jeecgboot-ui-vue2 -p 80:80 -d jeecgboot-ui2
# 6.访问前台项目
http://localhost
```