Browse Source

chore: 更新镜像和端口号

hanfangyu 1 year ago
parent
commit
fa80ffdc74
2 changed files with 5 additions and 3 deletions
  1. 2 1
      Dockerfile
  2. 3 2
      src/main/resources/application-linux.yml

+ 2 - 1
Dockerfile

@@ -1,5 +1,6 @@
 # 基础镜像
-FROM ibm-semeru-runtimes:open-8-jre
+#FROM ibm-semeru-runtimes:open-8-jre
+FROM openjdk:8
 
 # 创建挂载目录
 RUN mkdir -p /jar

+ 3 - 2
src/main/resources/application-linux.yml

@@ -3,11 +3,12 @@ spring:
     cloud:
         nacos:
             discovery:
+                server-addr: 172.18.0.5:8848
                 ip: 172.18.0.3   # 可指定 注册IP 默认注册服务启动的机器的内网IP
     # redis 配置
     redis:
         # 地址
-        host: 172.18.0.2
+        host: 172.18.0.3
         # 端口,默认为6379
         port: 6379
         # 数据库索引
@@ -32,7 +33,7 @@ spring:
         druid:
             # 主库数据源
             master:
-                url: jdbc:mysql://172.18.0.4:3306/ezhizao_yzbh_v2?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&allowMultiQueries=true&rewriteBatchedStatements=true&serverTimezone=GMT%2B8
+                url: jdbc:mysql://172.18.0.2:3306/ezhizao_yzbh_v2?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&allowMultiQueries=true&rewriteBatchedStatements=true&serverTimezone=GMT%2B8
                 username: root
                 password: ezhizao.cn123456
             # 从库数据源