Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jeecg-boot
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
jeecg-boot
Commits
db467f22
Commit
db467f22
authored
Aug 27, 2021
by
zhangdaiscott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docker文档调整
parent
53c91fc3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
12 deletions
+19
-12
jeecg-boot/README.md
+19
-12
No files found.
jeecg-boot/README.md
View file @
db467f22
...
...
@@ -159,31 +159,37 @@ code: {
## docker镜像用法
文档: http://doc.jeecg.com/2043889
```
注意: 如果本地安装了mysql和redis,启动容器前先停掉本地服务,不然会端口冲突。
net stop redis
net stop mysql
# 1.修改项目配置文件 application.yml
active: docker
# 1.配置host
# 2.先进JAVA项目根路径 maven打包
# jeecgboot
127.0.0.1 jeecg-boot-redis
127.0.0.1 jeecg-boot-mysql
127.0.0.1 jeecg-boot-system
# 2.修改项目配置文件 application.yml
active: dev
# 3.修改application-dev.yml文件的数据库和redis链接
修改数据库连接和redis连接,将连接改成host方式
# 4.先进JAVA项目jeecg-boot根路径 maven打包
mvn clean package
#
3
.构建镜像__容器组(当你改变本地代码,也可重新构建镜像)
#
5
.构建镜像__容器组(当你改变本地代码,也可重新构建镜像)
docker-compose build
# 4.配置host
# jeecgboot
127.0.0.1 jeecg-boot-redis
127.0.0.1 jeecg-boot-mysql
127.0.0.1 jeecg-boot-system
#
5
.启动镜像__容器组(也可取代运行中的镜像)
#
6
.启动镜像__容器组(也可取代运行中的镜像)
docker-compose up -d
#
6
.访问后台项目(注意要开启swagger)
#
7
.访问后台项目(注意要开启swagger)
http://localhost:8080/jeecg-boot/doc.html
```
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment