2
0

feat: enhance docker run env

This commit is contained in:
zhangsz
2024-12-30 12:06:02 +08:00
parent f5723b3106
commit 0207122187
25 changed files with 133 additions and 114 deletions

View File

@@ -1,7 +1,24 @@
MYSQL_ROOT_PASSWORD=123456
MYSQL_DATABASE=wfc_system_db
WFC_CONFIG_DATABASE=wfc_config_db
WFC_SYSTEM_DATABASE=wfc_system_db
WFC_USER_DATABASE=wfc_user_db
MYSQL_PORT=3306
MYSQL_USER=mysql
MYSQL_PASSWORD=
NACOS_SERVER_ADDR=192.168.2.248:8848
MYSQL_PASSWORD=123456
REDIS_PORT=6379
NACOS_NAME_SPACE=wfc-test
GATEWAY_ADDR=192.168.2.248:8080
WFC_SERVER_PORT=80
NACOS_SERVER_PORT=8848
GATEWAY_SERVER_PORT=8080
AUTH_SERVER_PORT=8081
WFC_JOB_PORT=9203
WFC_PAYMENT_PORT=9204
WFC_SYSTEM_PORT=9205
WFC_USER_PORT=9206
WFC_SERVER_IP=192.168.2.248
NACOS_SERVER_IP=${WFC_SERVER_IP}
GATEWAY_SERVER_IP=${WFC_SERVER_IP}
AUTH_SERVER_IP=${WFC_SERVER_IP}
RESTART_OPTION=on-failure:5

View File

@@ -6,7 +6,7 @@ services:
context: ./nacos
environment:
- MODE=standalone
- NACOS_SERVER_ADDR=${NACOS_SERVER_ADDR}
- NACOS_SERVER_IP=${NACOS_SERVER_IP}
- NACOS_NAME_SPACE=${NACOS_NAME_SPACE}
volumes:
- ./nacos/logs/:/home/nacos/logs
@@ -49,9 +49,9 @@ services:
ports:
- "6379:6379"
volumes:
- ./redis/conf/redis.conf:/home/wfc/redis/redis.conf
- ./redis/conf/redis.conf:/opt/wfc/redis/redis.conf
- ./redis/data:/data
command: redis-server /home/wfc/redis/redis.conf
command: redis-server /opt/wfc/redis/redis.conf
wfc-gateway:
container_name: wfc-gateway
@@ -61,13 +61,13 @@ services:
ports:
- "8080:8080"
volumes:
- ./wfc/gateway/jar/wfc-gateway.jar:/home/wfc/wfc-gateway.jar
- ./wfc/gateway/jar/wfc-gateway.jar:/opt/wfc/wfc-gateway.jar
depends_on:
- wfc-redis
links:
- wfc-redis
environment:
- NACOS_SERVER_ADDR=${NACOS_SERVER_ADDR}
- NACOS_SERVER_IP=${NACOS_SERVER_IP}
- NACOS_NAME_SPACE=${NACOS_NAME_SPACE}
wfc-auth:
container_name: wfc-auth
@@ -77,13 +77,13 @@ services:
ports:
- "9200:9200"
volumes:
- ./wfc/auth/jar/wfc-auth.jar:/home/wfc/wfc-auth.jar
- ./wfc/auth/jar/wfc-auth.jar:/opt/wfc/wfc-auth.jar
depends_on:
- wfc-redis
links:
- wfc-redis
environment:
- NACOS_SERVER_ADDR=${NACOS_SERVER_ADDR}
- NACOS_SERVER_IP=${NACOS_SERVER_IP}
- NACOS_NAME_SPACE=${NACOS_NAME_SPACE}
wfc-modules-system:
container_name: wfc-modules-system
@@ -93,7 +93,7 @@ services:
ports:
- "9201:9201"
volumes:
- ./wfc/modules/system/jar/wfc-modules-system.jar:/home/wfc/wfc-modules-system.jar
- ./wfc/modules/system/jar/wfc-modules-system.jar:/opt/wfc/wfc-modules-system.jar
depends_on:
- wfc-redis
- wfc-mysql
@@ -101,7 +101,7 @@ services:
- wfc-redis
- wfc-mysql
environment:
- NACOS_SERVER_ADDR=${NACOS_SERVER_ADDR}
- NACOS_SERVER_IP=${NACOS_SERVER_IP}
- NACOS_NAME_SPACE=${NACOS_NAME_SPACE}
wfc-modules-user:
container_name: wfc-modules-user
@@ -111,7 +111,7 @@ services:
ports:
- "9204:9204"
volumes:
- ./wfc/modules/user/jar/wfc-modules-user.jar:/home/wfc/wfc-modules-user.jar
- ./wfc/modules/user/jar/wfc-modules-user.jar:/opt/wfc/wfc-modules-user.jar
depends_on:
- wfc-redis
- wfc-mysql
@@ -119,7 +119,7 @@ services:
- wfc-redis
- wfc-mysql
environment:
- NACOS_SERVER_ADDR=${NACOS_SERVER_ADDR}
- NACOS_SERVER_IP=${NACOS_SERVER_IP}
- NACOS_NAME_SPACE=${NACOS_NAME_SPACE}
wfc-modules-gen:
container_name: wfc-modules-gen
@@ -129,13 +129,13 @@ services:
ports:
- "9202:9202"
volumes:
- ./wfc/modules/gen/jar/wfc-modules-gen.jar:/home/wfc/wfc-modules-gen.jar
- ./wfc/modules/gen/jar/wfc-modules-gen.jar:/opt/wfc/wfc-modules-gen.jar
depends_on:
- wfc-mysql
links:
- wfc-mysql
environment:
- NACOS_SERVER_ADDR=${NACOS_SERVER_ADDR}
- NACOS_SERVER_IP=${NACOS_SERVER_IP}
- NACOS_NAME_SPACE=${NACOS_NAME_SPACE}
wfc-modules-job:
container_name: wfc-modules-job
@@ -145,13 +145,13 @@ services:
ports:
- "9203:9203"
volumes:
- ./wfc/modules/job/jar/wfc-modules-job.jar:/home/wfc/wfc-modules-job.jar
- ./wfc/modules/job/jar/wfc-modules-job.jar:/opt/wfc/wfc-modules-job.jar
depends_on:
- wfc-mysql
links:
- wfc-mysql
environment:
- NACOS_SERVER_ADDR=${NACOS_SERVER_ADDR}
- NACOS_SERVER_IP=${NACOS_SERVER_IP}
- NACOS_NAME_SPACE=${NACOS_NAME_SPACE}
wfc-modules-file:
container_name: wfc-modules-file
@@ -161,10 +161,10 @@ services:
ports:
- "9300:9300"
volumes:
- ./wfc/modules/file/jar/wfc-modules-file.jar:/home/wfc/wfc-modules-file.jar
- ./wfc/upload:/home/wfc/upload
- ./wfc/modules/file/jar/wfc-modules-file.jar:/opt/wfc/wfc-modules-file.jar
- ./wfc/upload:/opt/wfc/upload
environment:
- NACOS_SERVER_ADDR=${NACOS_SERVER_ADDR}
- NACOS_SERVER_IP=${NACOS_SERVER_IP}
- NACOS_NAME_SPACE=${NACOS_NAME_SPACE}
wfc-modules-payment:
container_name: wfc-modules-payment
@@ -174,13 +174,13 @@ services:
ports:
- "9306:9306"
volumes:
- ./wfc/modules/payment/jar/wfc-modules-payment.jar:/home/wfc/wfc-modules-payment.jar
- ./wfc/modules/payment/jar/wfc-modules-payment.jar:/opt/wfc/wfc-modules-payment.jar
depends_on:
- wfc-mysql
links:
- wfc-mysql
environment:
- NACOS_SERVER_ADDR=${NACOS_SERVER_ADDR}
- NACOS_SERVER_IP=${NACOS_SERVER_IP}
- NACOS_NAME_SPACE=${NACOS_NAME_SPACE}
wfc-visual-monitor:
container_name: wfc-visual-monitor
@@ -190,9 +190,9 @@ services:
ports:
- "9100:9100"
volumes:
- ./wfc/visual/monitor/jar/wfc-visual-monitor.jar:/home/wfc/wfc-visual-monitor.jar
- ./wfc/visual/monitor/jar/wfc-visual-monitor.jar:/opt/wfc/wfc-visual-monitor.jar
environment:
- NACOS_SERVER_ADDR=${NACOS_SERVER_ADDR}
- NACOS_SERVER_IP=${NACOS_SERVER_IP}
- NACOS_NAME_SPACE=${NACOS_NAME_SPACE}
wfc-nginx:
container_name: wfc-nginx
@@ -202,7 +202,7 @@ services:
ports:
- "80:80"
volumes:
- ./nginx/html/dist:/home/wfc/portal
- ./nginx/html/dist:/opt/wfc/portal
- ./nginx/conf/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/logs:/var/log/nginx
- ./nginx/conf.d:/etc/nginx/conf.d

View File

@@ -7,7 +7,7 @@ db.password=123456
nacos.naming.empty-service.auto-clean=true
nacos.naming.empty-service.clean.initial-delay-ms=50000
nacos.naming.empty-service.clean.period-time-ms=30000
nacos.server.ip=${nacos.server.ip}
# nacos.server.ip=${nacos.server.ip}
management.endpoints.web.exposure.include=*

View File

@@ -15,7 +15,7 @@ http {
server_name localhost;
location /sys {
root /home/wfc/portal;
root /opt/wfc/portal;
try_files $uri $uri/ /index.html;
index index.html index.htm;
}
@@ -29,7 +29,7 @@ http {
}
location /u {
root /home/wfc/portal;
root /opt/wfc/portal;
try_files $uri $uri/ /index.html;
index index.html index.htm;
}

View File

@@ -3,8 +3,8 @@ FROM nginx
# author
MAINTAINER wfc
# 工作目录
WORKDIR /home/wfc/portal
WORKDIR /opt/wfc/portal
# 复制conf文件到路径
COPY ./conf/nginx.conf /etc/nginx/nginx.conf
# 复制html文件到路径
COPY ./html /home/wfc/portal
COPY ./html /opt/wfc/portal

View File

@@ -4,10 +4,10 @@ FROM redis
MAINTAINER wfc
# 挂载目录
VOLUME /home/wfc/redis
VOLUME /opt/wfc/redis
# 创建目录
RUN mkdir -p /home/wfc/redis
RUN mkdir -p /opt/wfc/redis
# 指定路径
WORKDIR /home/wfc/redis
WORKDIR /opt/wfc/redis
# 复制conf文件到路径
COPY ./conf/redis.conf /home/wfc/redis/redis.conf
COPY ./conf/redis.conf /opt/wfc/redis/redis.conf

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -4,12 +4,12 @@ FROM openjdk:8-jre
LABEL org.wfc.image.authors="wfc@wfc.org"
# 挂载目录
VOLUME /home/wfc
VOLUME /opt/wfc
# 创建目录
RUN mkdir -p /home/wfc
RUN mkdir -p /opt/wfc
# 指定路径
WORKDIR /home/wfc
WORKDIR /opt/wfc
# 复制jar文件到路径
COPY ./jar/wfc-modules-payment.jar /home/wfc/wfc-modules-payment.jar
COPY ./jar/wfc-modules-payment.jar /opt/wfc/wfc-modules-payment.jar
# 启动系统服务
ENTRYPOINT ["java","-jar","wfc-modules-payment.jar"]

View File

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

View File

@@ -4,12 +4,12 @@ FROM openjdk:8-jre
MAINTAINER wfc
# 挂载目录
VOLUME /home/wfc
VOLUME /opt/wfc
# 创建目录
RUN mkdir -p /home/wfc
RUN mkdir -p /opt/wfc
# 指定路径
WORKDIR /home/wfc
WORKDIR /opt/wfc
# 复制jar文件到路径
COPY ./jar/wfc-modules-user.jar /home/wfc/wfc-modules-user.jar
COPY ./jar/wfc-modules-user.jar /opt/wfc/wfc-modules-user.jar
# 启动系统服务
ENTRYPOINT ["java","-jar","wfc-modules-user.jar"]

View File

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

View File

@@ -39,6 +39,8 @@
<swagger.core.version>1.6.2</swagger.core.version>
<mail.version>1.6.2</mail.version>
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
<wfc.nacos.server>${env.NACOS_SERVER_NAME}</wfc.nacos.server>
<wfc.nacos.port>${env.NACOS_SERVER_PORT}</wfc.nacos.port>
<!-- override dependency version -->
<tomcat.version>9.0.96</tomcat.version>
@@ -452,7 +454,7 @@
<properties>
<!--当前环境-->
<profileName>prod</profileName>
<nacosServerAddr>${NACOS_SERVER_ADDR}</nacosServerAddr>
<nacosServerAddr>${wfc.nacos.server}:${wfc.nacos.port}</nacosServerAddr>
<nacosNamespace>wfc-prod</nacosNamespace>
</properties>
</profile>

View File

@@ -1,6 +1,6 @@
# Tomcat
server:
port: 9200
port: ${AUTH_SERVER_PORT:8081}
# Spring
spring:
@@ -14,12 +14,12 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: ${NACOS_SERVER_ADDR}
namespace: ${NACOS_NAME_SPACE}
server-addr: ${NACOS_SERVER_NAME:wfc-nacos}:${NACOS_SERVER_PORT:8848}
namespace: ${NACOS_NAME_SPACE:wfc-prod}
config:
# 配置中心地址
server-addr: ${NACOS_SERVER_ADDR}
namespace: ${NACOS_NAME_SPACE}
server-addr: ${NACOS_SERVER_NAME:wfc-nacos}:${NACOS_SERVER_PORT:8848}
namespace: ${NACOS_NAME_SPACE:wfc-prod}
# 配置文件格式
file-extension: yml
# 共享配置

View File

@@ -1,6 +1,6 @@
# Tomcat
server:
port: 8080
port: ${GATEWAY_SERVER_PORT:8080}
# Spring
spring:
@@ -14,12 +14,12 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: ${NACOS_SERVER_ADDR}
namespace: ${NACOS_NAME_SPACE}
server-addr: ${NACOS_SERVER_NAME:wfc-nacos}:${NACOS_SERVER_PORT:8848}
namespace: ${NACOS_NAME_SPACE:wfc-prod}
config:
# 配置中心地址
server-addr: ${NACOS_SERVER_ADDR}
namespace: ${NACOS_NAME_SPACE}
server-addr: ${NACOS_SERVER_NAME:wfc-nacos}:${NACOS_SERVER_PORT:8848}
namespace: ${NACOS_NAME_SPACE:wfc-prod}
# 配置文件格式
file-extension: yml
# 共享配置
@@ -35,7 +35,7 @@ spring:
datasource:
ds1:
nacos:
server-addr: ${NACOS_SERVER_ADDR}
server-addr: ${NACOS_SERVER_NAME:wfc-nacos}:${NACOS_SERVER_PORT:8848}
dataId: sentinel-wfc-gateway
groupId: DEFAULT_GROUP
data-type: json

View File

@@ -1,6 +1,6 @@
# Tomcat
server:
port: 9300
port: ${WFC_FILE_PORT:9201}
# Spring
spring:
@@ -14,12 +14,12 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: ${NACOS_SERVER_ADDR}
namespace: ${NACOS_NAME_SPACE}
server-addr: ${NACOS_SERVER_NAME:wfc-nacos}:${NACOS_SERVER_PORT:8848}
namespace: ${NACOS_NAME_SPACE:wfc-prod}
config:
# 配置中心地址
server-addr: ${NACOS_SERVER_ADDR}
namespace: ${NACOS_NAME_SPACE}
server-addr: ${NACOS_SERVER_NAME:wfc-nacos}:${NACOS_SERVER_PORT:8848}
namespace: ${NACOS_NAME_SPACE:wfc-prod}
# 配置文件格式
file-extension: yml
# 共享配置

View File

@@ -1,6 +1,6 @@
# Tomcat
server:
port: 9202
port: ${WFC_GEN_PORT:9202}
# Spring
spring:
@@ -14,12 +14,12 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: ${NACOS_SERVER_ADDR}
namespace: ${NACOS_NAME_SPACE}
server-addr: ${NACOS_SERVER_NAME:wfc-nacos}:${NACOS_SERVER_PORT:8848}
namespace: ${NACOS_NAME_SPACE:wfc-prod}
config:
# 配置中心地址
server-addr: ${NACOS_SERVER_ADDR}
namespace: ${NACOS_NAME_SPACE}
server-addr: ${NACOS_SERVER_NAME:wfc-nacos}:${NACOS_SERVER_PORT:8848}
namespace: ${NACOS_NAME_SPACE:wfc-prod}
# 配置文件格式
file-extension: yml
# 共享配置

View File

@@ -1,6 +1,6 @@
# Tomcat
server:
port: 9203
port: ${WFC_JOB_PORT:9203}
# Spring
spring:
@@ -14,12 +14,12 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: ${NACOS_SERVER_ADDR}
namespace: ${NACOS_NAME_SPACE}
server-addr: ${NACOS_SERVER_NAME:wfc-nacos}:${NACOS_SERVER_PORT:8848}
namespace: ${NACOS_NAME_SPACE:wfc-prod}
config:
# 配置中心地址
server-addr: ${NACOS_SERVER_ADDR}
namespace: ${NACOS_NAME_SPACE}
server-addr: ${NACOS_SERVER_NAME:wfc-nacos}:${NACOS_SERVER_PORT:8848}
namespace: ${NACOS_NAME_SPACE:wfc-prod}
# 配置文件格式
file-extension: yml
# 共享配置

View File

@@ -14,12 +14,12 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: wfc-nacos:${NACOS_SERVER_PORT}
namespace: ${NACOS_NAME_SPACE}
server-addr: ${NACOS_SERVER_NAME:wfc-nacos}:${NACOS_SERVER_PORT:8848}
namespace: ${NACOS_NAME_SPACE:wfc-prod}
config:
# 配置中心地址
server-addr: wfc-nacos:${NACOS_SERVER_PORT}
namespace: ${NACOS_NAME_SPACE}
server-addr: ${NACOS_SERVER_NAME:wfc-nacos}:${NACOS_SERVER_PORT:8848}
namespace: ${NACOS_NAME_SPACE:wfc-prod}
# 配置文件格式
file-extension: yml
# 共享配置

View File

@@ -14,12 +14,12 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: wfc-nacos:${NACOS_SERVER_PORT}
namespace: ${NACOS_NAME_SPACE}
server-addr: ${NACOS_SERVER_NAME:wfc-nacos}:${NACOS_SERVER_PORT:8848}
namespace: ${NACOS_NAME_SPACE:wfc-prod}
config:
# 配置中心地址
server-addr: wfc-nacos:${NACOS_SERVER_PORT}
namespace: ${NACOS_NAME_SPACE}
server-addr: ${NACOS_SERVER_NAME:wfc-nacos}:${NACOS_SERVER_PORT:8848}
namespace: ${NACOS_NAME_SPACE:wfc-prod}
# 配置文件格式
file-extension: yml
# 共享配置

View File

@@ -14,12 +14,12 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: wfc-nacos:${NACOS_SERVER_PORT}
namespace: ${NACOS_NAME_SPACE}
server-addr: ${NACOS_SERVER_NAME:wfc-nacos}:${NACOS_SERVER_PORT:8848}
namespace: ${NACOS_NAME_SPACE:wfc-prod}
config:
# 配置中心地址
server-addr: wfc-nacos:${NACOS_SERVER_PORT}
namespace: ${NACOS_NAME_SPACE}
server-addr: ${NACOS_SERVER_NAME:wfc-nacos}:${NACOS_SERVER_PORT:8848}
namespace: ${NACOS_NAME_SPACE:wfc-prod}
# 配置文件格式
file-extension: yml
# 共享配置

View File

@@ -14,12 +14,12 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: ${NACOS_SERVER_ADDR}
namespace: ${NACOS_NAME_SPACE}
server-addr: ${NACOS_SERVER_NAME:wfc-nacos}:${NACOS_SERVER_PORT:8848}
namespace: ${NACOS_NAME_SPACE:wfc-prod}
config:
# 配置中心地址
server-addr: ${NACOS_SERVER_ADDR}
namespace: ${NACOS_NAME_SPACE}
server-addr: ${NACOS_SERVER_NAME:wfc-nacos}:${NACOS_SERVER_PORT:8848}
namespace: ${NACOS_NAME_SPACE:wfc-prod}
# 配置文件格式
file-extension: yml
# 共享配置