mirror of https://github.com/jeecgboot/jeecg-boot
docker快速启动项目
parent
e2af6826b4
commit
c0a95521e4
|
@ -74,6 +74,11 @@ Jeecg-Boot低代码开发平台,可以应用在任何J2EE项目的开发中,
|
|||
> ` 提醒:【QQ群是自助服务群,建议给帮助您解决问题的同学发送指定红包,表示感谢!】 `
|
||||
|
||||
|
||||
Docker启动项目
|
||||
-----------------------------------
|
||||
- [Docker镜像单体启动项目](http://doc.jeecg.com/2043889)
|
||||
- [Docker镜像微服务启动项目](http://doc.jeecg.com/2656147)
|
||||
- [jeecgboot-vue3Docker启动](http://vue3.jeecg.com/3028878)
|
||||
|
||||
为什么选择JEECG-BOOT?
|
||||
-----------------------------------
|
||||
|
|
|
@ -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
|
||||
```
|
Loading…
Reference in New Issue