style(项目部署): 自动化部署脚本
docker-compose容器重命名为gitlink 关联Issue:https://www.gitlink.org.cn/Gitlink/forgeplus/issues/2853
This commit is contained in:
parent
2a9441995b
commit
a380063be1
|
|
@ -11,7 +11,7 @@ services:
|
|||
- #docker_data/nacos/logs/:/home/nacos/logs
|
||||
- #docker_data/nacos/conf/application.properties:/home/nacos/conf/application.properties
|
||||
ports:
|
||||
- "23848:8848"
|
||||
- "23848:8848"
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
|
|
@ -11,11 +11,8 @@ management.metrics.export.elastic.enabled=false
|
|||
management.metrics.export.influx.enabled=false
|
||||
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.basedir=/home/ruoyi/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.core.auth.system.type=nacos
|
||||
nacos.core.auth.enabled=false
|
||||
nacos.core.auth.default.token.expire.seconds=18000
|
||||
|
|
@ -24,5 +21,4 @@ nacos.core.auth.caching.enabled=true
|
|||
nacos.core.auth.enable.userAgentAuthWhite=false
|
||||
nacos.core.auth.server.identity.key=serverIdentity
|
||||
nacos.core.auth.server.identity.value=security
|
||||
|
||||
nacos.istio.mcp.server.enabled=false
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
# 基础镜像
|
||||
FROM nacos/nacos-server:v2.2.0
|
||||
# author
|
||||
MAINTAINER gitlink
|
||||
|
||||
# 复制conf文件到路径
|
||||
COPY ./conf/application.properties /home/nacos/conf/application.properties
|
||||
# 基础镜像
|
||||
FROM nacos/nacos-server:v2.2.0
|
||||
# author
|
||||
MAINTAINER gitlink
|
||||
|
||||
# 复制conf文件到路径
|
||||
COPY ./conf/application.properties /home/nacos/conf/application.properties
|
||||
|
|
@ -1,36 +1,36 @@
|
|||
worker_processes 1;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
include mime.types;
|
||||
default_type application/octet-stream;
|
||||
sendfile on;
|
||||
keepalive_timeout 65;
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
|
||||
location / {
|
||||
root /home/ruoyi/projects/ruoyi-ui;
|
||||
try_files $uri $uri/ /index.html;
|
||||
index index.html index.htm;
|
||||
}
|
||||
|
||||
location /prod-api/{
|
||||
proxy_set_header Host $http_host;
|
||||
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/;
|
||||
}
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root html;
|
||||
}
|
||||
}
|
||||
worker_processes 1;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
include mime.types;
|
||||
default_type application/octet-stream;
|
||||
sendfile on;
|
||||
keepalive_timeout 65;
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
|
||||
location / {
|
||||
root /home/ruoyi/projects/ruoyi-ui;
|
||||
try_files $uri $uri/ /index.html;
|
||||
index index.html index.htm;
|
||||
}
|
||||
|
||||
location /prod-api/{
|
||||
proxy_set_header Host $http_host;
|
||||
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/;
|
||||
}
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root html;
|
||||
}
|
||||
}
|
||||
}# requirepass 123456
|
||||
|
|
@ -1,15 +1,15 @@
|
|||
# 基础镜像
|
||||
FROM nginx
|
||||
# author
|
||||
MAINTAINER gitlink
|
||||
|
||||
# 挂载目录
|
||||
VOLUME /home/gitlink/projects/ruoyi-ui
|
||||
# 创建目录
|
||||
RUN mkdir -p /home/gitlink/projects/ruoyi-ui
|
||||
# 指定路径
|
||||
WORKDIR /home/gitlink/projects/ruoyi-ui
|
||||
# 复制conf文件到路径
|
||||
COPY ./conf/nginx.conf /etc/nginx/nginx.conf
|
||||
# 复制html文件到路径
|
||||
COPY ./html/dist /home/gitlink/projects/ruoyi-ui
|
||||
# 基础镜像
|
||||
FROM nginx
|
||||
# author
|
||||
MAINTAINER gitlink
|
||||
|
||||
# 挂载目录
|
||||
VOLUME /home/gitlink/projects/ruoyi-ui
|
||||
# 创建目录
|
||||
RUN mkdir -p /home/gitlink/projects/ruoyi-ui
|
||||
# 指定路径
|
||||
WORKDIR /home/gitlink/projects/ruoyi-ui
|
||||
# 复制conf文件到路径
|
||||
COPY ./conf/nginx.conf /etc/nginx/nginx.conf
|
||||
# 复制html文件到路径
|
||||
COPY ./html/dist /home/gitlink/projects/ruoyi-ui
|
||||
|
|
@ -1,13 +1,13 @@
|
|||
# 基础镜像
|
||||
FROM redis:5.0
|
||||
# author
|
||||
MAINTAINER gitlink
|
||||
|
||||
# 挂载目录
|
||||
VOLUME /home/gitlink/redis
|
||||
# 创建目录
|
||||
RUN mkdir -p /home/gitlink/redis
|
||||
# 指定路径
|
||||
WORKDIR /home/gitlink/redis
|
||||
# 复制conf文件到路径
|
||||
COPY ./conf/redis.conf /home/gitlink/redis/redis.conf
|
||||
# 基础镜像
|
||||
FROM redis:5.0
|
||||
# author
|
||||
MAINTAINER gitlink
|
||||
|
||||
# 挂载目录
|
||||
VOLUME /home/gitlink/redis
|
||||
# 创建目录
|
||||
RUN mkdir -p /home/gitlink/redis
|
||||
# 指定路径
|
||||
WORKDIR /home/gitlink/redis
|
||||
# 复制conf文件到路径
|
||||
COPY ./conf/redis.conf /home/gitlink/redis/redis.conf
|
||||
|
|
@ -1 +0,0 @@
|
|||
存放前端ruoyi-ui构建好的静态文件,用于nginx请求访问。
|
||||
Loading…
Reference in New Issue