2
0

feat: 调整docker脚本

This commit is contained in:
caiyuchao
2024-11-14 18:55:56 +08:00
parent 432ff24fe6
commit 98c9c358e7
25 changed files with 68 additions and 62 deletions

View File

@@ -1,4 +1,4 @@
# WfcCloud-Vue-AntD # Back-End at CRM
## 项目介绍 ## 项目介绍
WfcCloud-Vue-AntD是一个基于Spring Cloud、OAuth2.0、Ant Design Vue的前后端分离的开发平台提供了一整套微服务解决方案包括核心模块如组织机构、角色用户、菜单权限、网关路由、数据权限等常用中间件如日志脱敏、任务调度、短信邮箱、接口文档、代码生成等高效稳定极大的缩短研发周期帮助企业快速构建业务系统。 WfcCloud-Vue-AntD是一个基于Spring Cloud、OAuth2.0、Ant Design Vue的前后端分离的开发平台提供了一整套微服务解决方案包括核心模块如组织机构、角色用户、菜单权限、网关路由、数据权限等常用中间件如日志脱敏、任务调度、短信邮箱、接口文档、代码生成等高效稳定极大的缩短研发周期帮助企业快速构建业务系统。

View File

@@ -9,8 +9,8 @@ usage() {
# copy sql # copy sql
echo "begin copy sql " echo "begin copy sql "
cp ../sql/ry_20231130.sql ./mysql/db cp ../sql/wfc-cloud.sql ./mysql/db
cp ../sql/ry_config_20231204.sql ./mysql/db cp ../sql/wfc-config.sql ./mysql/db
# copy html # copy html
echo "begin copy html " echo "begin copy html "
@@ -19,23 +19,23 @@ cp -r ../wfc-ui/dist/** ./nginx/html/dist
# copy jar # copy jar
echo "begin copy wfc-gateway " echo "begin copy wfc-gateway "
cp ../wfc-gateway/target/wfc-gateway.jar ./ruoyi/gateway/jar cp ../wfc-gateway/target/wfc-gateway.jar ./wfc/gateway/jar
echo "begin copy wfc-auth " echo "begin copy wfc-auth "
cp ../wfc-auth/target/wfc-auth.jar ./ruoyi/auth/jar cp ../wfc-auth/target/wfc-auth.jar ./wfc/auth/jar
echo "begin copy wfc-visual " echo "begin copy wfc-visual "
cp ../wfc-visual/wfc-monitor/target/wfc-visual-monitor.jar ./ruoyi/visual/monitor/jar cp ../wfc-visual/wfc-monitor/target/wfc-visual-monitor.jar ./wfc/visual/monitor/jar
echo "begin copy wfc-modules-system " echo "begin copy wfc-modules-system "
cp ../wfc-modules/wfc-system/target/wfc-modules-system.jar ./ruoyi/modules/system/jar cp ../wfc-modules/wfc-system/target/wfc-modules-system.jar ./wfc/modules/system/jar
echo "begin copy wfc-modules-file " echo "begin copy wfc-modules-file "
cp ../wfc-modules/wfc-file/target/wfc-modules-file.jar ./ruoyi/modules/file/jar cp ../wfc-modules/wfc-file/target/wfc-modules-file.jar ./wfc/modules/file/jar
echo "begin copy wfc-modules-job " echo "begin copy wfc-modules-job "
cp ../wfc-modules/wfc-job/target/wfc-modules-job.jar ./ruoyi/modules/job/jar cp ../wfc-modules/wfc-job/target/wfc-modules-job.jar ./wfc/modules/job/jar
echo "begin copy wfc-modules-gen " echo "begin copy wfc-modules-gen "
cp ../wfc-modules/wfc-gen/target/wfc-modules-gen.jar ./ruoyi/modules/gen/jar cp ../wfc-modules/wfc-gen/target/wfc-modules-gen.jar ./wfc/modules/gen/jar

View File

@@ -36,7 +36,7 @@ services:
'--lower-case-table-names=1' '--lower-case-table-names=1'
] ]
environment: environment:
MYSQL_DATABASE: 'ry-cloud' MYSQL_DATABASE: 'wfc-cloud'
MYSQL_ROOT_PASSWORD: 123456 MYSQL_ROOT_PASSWORD: 123456
wfc-redis: wfc-redis:
container_name: wfc-redis container_name: wfc-redis

View File

@@ -1,7 +1,7 @@
# 基础镜像 # 基础镜像
FROM mysql:5.7 FROM mysql:5.7
# author # author
MAINTAINER ruoyi MAINTAINER wfc
# 执行sql脚本 # 执行sql脚本
ADD ./db/*.sql /docker-entrypoint-initdb.d/ ADD ./db/*.sql /docker-entrypoint-initdb.d/

View File

@@ -1,6 +1,6 @@
spring.datasource.platform=mysql spring.datasource.platform=mysql
db.num=1 db.num=1
db.url.0=jdbc:mysql://localhost:3306/ry-config?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC db.url.0=jdbc:mysql://localhost:3306/wfc-config?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC
db.user=root db.user=root
db.password=123456 db.password=123456
@@ -16,7 +16,7 @@ management.metrics.export.influx.enabled=false
server.tomcat.accesslog.enabled=true server.tomcat.accesslog.enabled=true
server.tomcat.accesslog.pattern=%h %l %u %t "%r" %s %b %D %{User-Agent}i %{Request-Source}i server.tomcat.accesslog.pattern=%h %l %u %t "%r" %s %b %D %{User-Agent}i %{Request-Source}i
server.tomcat.basedir=/home/ruoyi/nacos/tomcat/logs server.tomcat.basedir=/home/wfc/nacos/tomcat/logs
nacos.security.ignore.urls=/,/error,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-ui/public/**,/v1/auth/**,/v1/console/health/**,/actuator/**,/v1/console/server/** nacos.security.ignore.urls=/,/error,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-ui/public/**,/v1/auth/**,/v1/console/health/**,/actuator/**,/v1/console/server/**

View File

@@ -1,7 +1,7 @@
# 基础镜像 # 基础镜像
FROM nacos/nacos-server FROM nacos/nacos-server
# author # author
MAINTAINER ruoyi MAINTAINER wfc
# 复制conf文件到路径 # 复制conf文件到路径
COPY ./conf/application.properties /home/nacos/conf/application.properties COPY ./conf/application.properties /home/nacos/conf/application.properties

View File

@@ -15,7 +15,7 @@ http {
server_name localhost; server_name localhost;
location / { location / {
root /home/ruoyi/projects/ruoyi-ui; root /home/wfc/projects/wfc-ui;
try_files $uri $uri/ /index.html; try_files $uri $uri/ /index.html;
index index.html index.htm; index index.html index.htm;
} }
@@ -25,7 +25,7 @@ http {
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr; proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://ruoyi-gateway:8080/; proxy_pass http://wfc-gateway:8080/;
} }
# 避免actuator暴露 # 避免actuator暴露

View File

@@ -1,15 +1,15 @@
# 基础镜像 # 基础镜像
FROM nginx FROM nginx
# author # author
MAINTAINER ruoyi MAINTAINER wfc
# 挂载目录 # 挂载目录
VOLUME /home/ruoyi/projects/wfc-ui VOLUME /home/wfc/projects/wfc-ui
# 创建目录 # 创建目录
RUN mkdir -p /home/ruoyi/projects/wfc-ui RUN mkdir -p /home/wfc/projects/wfc-ui
# 指定路径 # 指定路径
WORKDIR /home/ruoyi/projects/wfc-ui WORKDIR /home/wfc/projects/wfc-ui
# 复制conf文件到路径 # 复制conf文件到路径
COPY ./conf/nginx.conf /etc/nginx/nginx.conf COPY ./conf/nginx.conf /etc/nginx/nginx.conf
# 复制html文件到路径 # 复制html文件到路径
COPY ./html/dist /home/ruoyi/projects/wfc-ui COPY ./html/dist /home/wfc/projects/wfc-ui

View File

@@ -1,13 +1,13 @@
# 基础镜像 # 基础镜像
FROM redis FROM redis
# author # author
MAINTAINER ruoyi MAINTAINER wfc
# 挂载目录 # 挂载目录
VOLUME /home/ruoyi/redis VOLUME /home/wfc/redis
# 创建目录 # 创建目录
RUN mkdir -p /home/ruoyi/redis RUN mkdir -p /home/wfc/redis
# 指定路径 # 指定路径
WORKDIR /home/ruoyi/redis WORKDIR /home/wfc/redis
# 复制conf文件到路径 # 复制conf文件到路径
COPY ./conf/redis.conf /home/ruoyi/redis/redis.conf COPY ./conf/redis.conf /home/wfc/redis/redis.conf

View File

@@ -1,15 +1,15 @@
# 基础镜像 # 基础镜像
FROM openjdk:8-jre FROM openjdk:8-jre
# author # author
MAINTAINER ruoyi MAINTAINER wfc
# 挂载目录 # 挂载目录
VOLUME /home/ruoyi VOLUME /home/wfc
# 创建目录 # 创建目录
RUN mkdir -p /home/ruoyi RUN mkdir -p /home/wfc
# 指定路径 # 指定路径
WORKDIR /home/ruoyi WORKDIR /home/wfc
# 复制jar文件到路径 # 复制jar文件到路径
COPY ./jar/wfc-auth.jar /home/ruoyi/wfc-auth.jar COPY ./jar/wfc-auth.jar /home/wfc/wfc-auth.jar
# 启动认证服务 # 启动认证服务
ENTRYPOINT ["java","-jar","wfc-auth.jar"] ENTRYPOINT ["java","-jar","wfc-auth.jar"]

View File

@@ -1,15 +1,15 @@
# 基础镜像 # 基础镜像
FROM openjdk:8-jre FROM openjdk:8-jre
# author # author
MAINTAINER ruoyi MAINTAINER wfc
# 挂载目录 # 挂载目录
VOLUME /home/ruoyi VOLUME /home/wfc
# 创建目录 # 创建目录
RUN mkdir -p /home/ruoyi RUN mkdir -p /home/wfc
# 指定路径 # 指定路径
WORKDIR /home/ruoyi WORKDIR /home/wfc
# 复制jar文件到路径 # 复制jar文件到路径
COPY ./jar/wfc-gateway.jar /home/ruoyi/wfc-gateway.jar COPY ./jar/wfc-gateway.jar /home/wfc/wfc-gateway.jar
# 启动网关服务 # 启动网关服务
ENTRYPOINT ["java","-jar","wfc-gateway.jar"] ENTRYPOINT ["java","-jar","wfc-gateway.jar"]

View File

@@ -1,15 +1,15 @@
# 基础镜像 # 基础镜像
FROM openjdk:8-jre FROM openjdk:8-jre
# author # author
MAINTAINER ruoyi MAINTAINER wfc
# 挂载目录 # 挂载目录
VOLUME /home/ruoyi VOLUME /home/wfc
# 创建目录 # 创建目录
RUN mkdir -p /home/ruoyi RUN mkdir -p /home/wfc
# 指定路径 # 指定路径
WORKDIR /home/ruoyi WORKDIR /home/wfc
# 复制jar文件到路径 # 复制jar文件到路径
COPY ./jar/wfc-modules-file.jar /home/ruoyi/wfc-modules-file.jar COPY ./jar/wfc-modules-file.jar /home/wfc/wfc-modules-file.jar
# 启动文件服务 # 启动文件服务
ENTRYPOINT ["java","-jar","wfc-modules-file.jar"] ENTRYPOINT ["java","-jar","wfc-modules-file.jar"]

View File

@@ -1,15 +1,15 @@
# 基础镜像 # 基础镜像
FROM openjdk:8-jre FROM openjdk:8-jre
# author # author
MAINTAINER ruoyi MAINTAINER wfc
# 挂载目录 # 挂载目录
VOLUME /home/ruoyi VOLUME /home/wfc
# 创建目录 # 创建目录
RUN mkdir -p /home/ruoyi RUN mkdir -p /home/wfc
# 指定路径 # 指定路径
WORKDIR /home/ruoyi WORKDIR /home/wfc
# 复制jar文件到路径 # 复制jar文件到路径
COPY ./jar/wfc-modules-gen.jar /home/ruoyi/wfc-modules-gen.jar COPY ./jar/wfc-modules-gen.jar /home/wfc/wfc-modules-gen.jar
# 启动代码生成服务 # 启动代码生成服务
ENTRYPOINT ["java","-jar","wfc-modules-gen.jar"] ENTRYPOINT ["java","-jar","wfc-modules-gen.jar"]

View File

@@ -1,15 +1,15 @@
# 基础镜像 # 基础镜像
FROM openjdk:8-jre FROM openjdk:8-jre
# author # author
MAINTAINER ruoyi MAINTAINER wfc
# 挂载目录 # 挂载目录
VOLUME /home/ruoyi VOLUME /home/wfc
# 创建目录 # 创建目录
RUN mkdir -p /home/ruoyi RUN mkdir -p /home/wfc
# 指定路径 # 指定路径
WORKDIR /home/ruoyi WORKDIR /home/wfc
# 复制jar文件到路径 # 复制jar文件到路径
COPY ./jar/wfc-modules-job.jar /home/ruoyi/wfc-modules-job.jar COPY ./jar/wfc-modules-job.jar /home/wfc/wfc-modules-job.jar
# 启动定时任务服务 # 启动定时任务服务
ENTRYPOINT ["java","-jar","wfc-modules-job.jar"] ENTRYPOINT ["java","-jar","wfc-modules-job.jar"]

View File

@@ -1,15 +1,15 @@
# 基础镜像 # 基础镜像
FROM openjdk:8-jre FROM openjdk:8-jre
# author # author
MAINTAINER ruoyi MAINTAINER wfc
# 挂载目录 # 挂载目录
VOLUME /home/ruoyi VOLUME /home/wfc
# 创建目录 # 创建目录
RUN mkdir -p /home/ruoyi RUN mkdir -p /home/wfc
# 指定路径 # 指定路径
WORKDIR /home/ruoyi WORKDIR /home/wfc
# 复制jar文件到路径 # 复制jar文件到路径
COPY ./jar/wfc-modules-system.jar /home/ruoyi/wfc-modules-system.jar COPY ./jar/wfc-modules-system.jar /home/wfc/wfc-modules-system.jar
# 启动系统服务 # 启动系统服务
ENTRYPOINT ["java","-jar","wfc-modules-system.jar"] ENTRYPOINT ["java","-jar","wfc-modules-system.jar"]

View File

@@ -1,15 +1,15 @@
# 基础镜像 # 基础镜像
FROM openjdk:8-jre FROM openjdk:8-jre
# author # author
MAINTAINER ruoyi MAINTAINER wfc
# 挂载目录 # 挂载目录
VOLUME /home/ruoyi VOLUME /home/wfc
# 创建目录 # 创建目录
RUN mkdir -p /home/ruoyi RUN mkdir -p /home/wfc
# 指定路径 # 指定路径
WORKDIR /home/ruoyi WORKDIR /home/wfc
# 复制jar文件到路径 # 复制jar文件到路径
COPY ./jar/wfc-visual-monitor.jar /home/ruoyi/wfc-visual-monitor.jar COPY ./jar/wfc-visual-monitor.jar /home/wfc/wfc-visual-monitor.jar
# 启动系统服务 # 启动系统服务
ENTRYPOINT ["java","-jar","wfc-visual-monitor.jar"] ENTRYPOINT ["java","-jar","wfc-visual-monitor.jar"]

View File

@@ -1,3 +1,6 @@
CREATE database if NOT EXISTS `wfc-cloud` default character set utf8mb4;
USE `wfc-cloud`;
/* /*
Navicat Premium Data Transfer Navicat Premium Data Transfer

View File

@@ -1,3 +1,6 @@
CREATE database if NOT EXISTS `wfc-config` default character set utf8mb4;
USE `wfc-config`;
/* /*
Navicat Premium Data Transfer Navicat Premium Data Transfer