Browse Source

增加、更改关于docker配置

dongjh 1 month ago
parent
commit
443c905773

+ 29 - 2
jeecg-module-system/jeecg-system-start/src/main/resources/application-dev.yml

@@ -183,6 +183,12 @@ spring:
           url: jdbc:postgresql://119.3.168.55:5432/interlock?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
           username: postgres
           password: 302201
+
+#    打包时修改该配置 改成正式数据库
+#          url: jdbc:postgresql://127.0.0.1:5436/interlock?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
+#          username: postgres
+#          password: cfc1280b9735f2a1d67
+
           driver-class-name: org.postgresql.Driver
 #          url: jdbc:mysql://119.3.168.55:3306/interlock?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
 #          username: root
@@ -200,6 +206,17 @@ spring:
     host: 119.3.168.55
     port: 6380
     password: 123qx
+
+#    打包时修改该配置 改成正式redis
+#    host: 127.0.0.1
+#    port: 6379
+#    password:
+
+#    docker配置
+#    host: interlock_redis
+#    port: 6379
+#    password:
+
 #mybatis plus 设置
 mybatis-plus:
   mapper-locations: classpath*:org/jeecg/modules/**/xml/*Mapper.xml
@@ -281,8 +298,13 @@ jeecg:
     logRetentionDays: 30
   #分布式锁配置
   redisson:
-    address: 127.0.0.1:6379
-    password:
+#    docker配置
+#    address: http://interlock_redis:6379
+#    打包时修改该配置 改成正式数据库
+#    address: 127.0.0.1:6379
+#    password:
+    address: 119.3.168.55:6380
+    password: 123qx
     type: STANDALONE
     enabled: true
 #cas单点登录
@@ -364,3 +386,8 @@ postgresql:
   url: jdbc:postgresql://119.3.168.55:5432/interlock
   username: postgres
   password: 302201
+
+#    打包时修改该配置 改成正式数据库
+#  url: jdbc:postgresql://127.0.0.1:5436/interlock
+#  username: postgres
+#  password: cfc1280b9735f2a1d67