增加docker运行方式,快速跑起来。

newFeature
Mahone 3 years ago
parent 0eeb18f051
commit def6d0eeef

@ -41,7 +41,7 @@ spring:
docker-compose up -d
```
4. 访问后台项目注意要开启swaggerhttp://localhost:8080/jeecg-boot/doc.html
4. 访问后台项目注意要开启swaggerhttp://localhost:8080/ky/doc.html
- # 构建前端
1. 修改前端项目的后台域名
@ -65,6 +65,6 @@ docker build -t nginx:kykms .
4. 启动镜像
```
docker run --name kykms-nginx -p 80:80 -d nginx:kykms
docker run --name kykms-nginx -p 3000:3000 -d nginx:kykms
```
5. 访问前台项目 http://localhost:80
5. 访问前台项目 http://localhost:3000

@ -3,7 +3,7 @@ MAINTAINER hnliuwx@gmail.com
VOLUME /tmp
ENV LANG en_US.UTF-8
RUN echo "server { \
listen 81; \
listen 3000; \
location ^~ /ky { \
proxy_pass http://localhost:8080/ky/; \
proxy_set_header Host localhost; \

@ -76,7 +76,7 @@ module.exports = {
},
devServer: {
port: 80,
port: 3000,
proxy: {
/* '/api': {
target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro', //mock API接口系统

@ -78,4 +78,4 @@ VUE_APP_API_BASE_URL=http://localhost:8080/km
5. 点击serve 启动项目,看到如下日志 则启动成功
![KY KMS](./Docs/Pics/web_success.png)
6. 通过 http://localhost 访问前端项目,默认账号密码: admin/123456
6. 通过 http://localhost:3000 访问前端项目,默认账号密码: admin/123456
Loading…
Cancel
Save