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

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

View File

@@ -1,15 +1,15 @@
# 基础镜像
FROM nginx
# 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文件到路径
COPY ./conf/nginx.conf /etc/nginx/nginx.conf
# 复制html文件到路径
COPY ./html/dist /home/ruoyi/projects/wfc-ui
COPY ./html/dist /home/wfc/projects/wfc-ui