macro 5 жил өмнө
parent
commit
dbead7c863

+ 7 - 0
mall-portal/src/main/resources/application-prod.yml

@@ -35,6 +35,13 @@ spring:
         min-idle: 0 # 连接池中的最小空闲连接
     timeout: 0ms # 连接超时时间(毫秒)
 
+  rabbitmq:
+    host: rabbit
+    port: 5672
+    virtual-host: /mall
+    username: mall
+    password: mall
+    publisher-confirms: true #如果对异步消息需要回调必须设置为true
 # 日志配置
 logging:
   path: /var/logs

+ 2 - 2
mall-search/src/main/resources/application-prod.yml

@@ -1,6 +1,6 @@
 spring:
   datasource:
-    url: jdbc:mysql://localhost:3306/mall?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
+    url: jdbc:mysql://db:3306/mall?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
     username: reader
     password: 123456
     druid:
@@ -17,7 +17,7 @@ spring:
     elasticsearch:
       repositories:
         enabled: true
-      cluster-nodes: 127.0.0.1:9300
+      cluster-nodes: es:9300
 
 logging:
   path: /var/logs #配置日志生成路径