提交 2e2d1998 作者: yanxin

容器构建配置修改

上级 a241b23e
......@@ -32,4 +32,4 @@ ENV JVM_OPTS="-Xmx2024M -Xms256M"
EXPOSE ${PORT}
ENTRYPOINT ["sh","-c","java $APP_OPTS1 $APP_OPTS2 $APP_OPTS3 $APP_OPTS4 $APP_OPTS5 $APP_OPTS6 $APP_OPTS7 $APP_OPTS8 -jar $JVM_OPTS /workspace/app.jar"]
\ No newline at end of file
ENTRYPOINT ["sh","-c","java $JVM_OPTS -Dspring.profiles.active=nacos -jar /workspace/app.jar"]
\ No newline at end of file
......@@ -22,7 +22,7 @@ profiles="nacos"
# 服务名
svc_name="subject-server"
# 服务端口
svc_port="1688"
svc_port="1689"
# nacos配置
nacos_server="192.168.0.225:8848"
......
......@@ -22,7 +22,7 @@ profiles="nacos"
# 服务名
svc_name="subject-server"
# 服务端口
svc_port="1688"
svc_port="1689"
# nacos配置
nacos_server="192.168.0.225:8848"
......
......@@ -7,13 +7,13 @@ spring:
# nacos 服务注册
discovery:
enabled: true
server-addr: nacos:8848
server-addr: 192.168.0.225:8848
namespace: # 命名空间
# nacos 配置中心
config:
username: nacos
password: nacos
server-addr: nacos:8848
server-addr: 192.168.0.225:8848
namespace: # 命名空间
group: clb-service
prefix: ${spring.application.name} # 配置前缀,默认是应用名
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论