feat: add user module deploy

This commit is contained in:
caiyuchao committed 2024-11-28 14:37:15 +08:00
1 parent edf8017dcd
commit 8c0032e569
5 files changed
+34 -2

No files matched your search

+3
View File
@@ -30,6 +30,9 @@ cp ../wfc-visual/wfc-monitor/target/wfc-visual-monitor.jar ./wfc/visual/monitor
echo "begin copy wfc-modules-system "
cp ../wfc-modules/wfc-system/target/wfc-modules-system.jar ./wfc/modules/system/jar
echo "begin copy wfc-modules-user "
cp ../wfc-modules/wfc-modules-user/target/wfc-modules-user.jar ./wfc/modules/user/jar
echo "begin copy wfc-modules-file "
cp ../wfc-modules/wfc-file/target/wfc-modules-file.jar ./wfc/modules/file/jar
+2 -2
View File
@@ -31,12 +31,12 @@ base(){
# 启动程序模块(必须)
modules(){
docker-compose up -d wfc-nginx wfc-gateway wfc-auth wfc-modules-system
docker-compose up -d wfc-nginx wfc-gateway wfc-auth wfc-modules-system wfc-modules-user
}
# 启动程序模块(后端)
backend(){
docker-compose up -d wfc-gateway wfc-auth wfc-modules-system
docker-compose up -d wfc-gateway wfc-auth wfc-modules-system wfc-modules-user
}
# 启动程序模块(前端)
+13
View File
@@ -100,6 +100,19 @@ services:
links:
- wfc-redis
- wfc-mysql
wfc-modules-user:
container_name: wfc-modules-user
build:
context: ./wfc/modules/user
dockerfile: dockerfile
ports:
- "9204:9204"
depends_on:
- wfc-redis
- wfc-mysql
links:
- wfc-redis
- wfc-mysql
wfc-modules-gen:
container_name: wfc-modules-gen
build:
+15
View File
@@ -0,0 +1,15 @@
# 基础镜像
FROM openjdk:8-jre
# author
MAINTAINER wfc
# 挂载目录
VOLUME /home/wfc
# 创建目录
RUN mkdir -p /home/wfc
# 指定路径
WORKDIR /home/wfc
# 复制jar文件到路径
COPY ./jar/wfc-modules-user.jar /home/wfc/wfc-modules-user.jar
# 启动系统服务
ENTRYPOINT ["java","-jar","wfc-modules-user.jar"]
+1
View File
@@ -0,0 +1 @@
存放系统模块打包好的jar文件,用于docker启动应用。