From 3621331613bafeb2f087c74cbbfe3f05d2ca942b Mon Sep 17 00:00:00 2001 From: wanggeng <450292408@qq.com> Date: Fri, 31 Dec 2021 10:39:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- src/main/resources/application-dev.yml | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5786604..47d7418 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM openjdk:8u292-jre-buster ARG JAR_FILE=/target/*.jar COPY ${JAR_FILE} smart-city-usercenter.jar -ENTRYPOINT ["java","-jar","-Dspring.profiles.active=prod","/smart-city-usercenter.jar"] +ENTRYPOINT ["java","-jar","-Dspring.profiles.active=test","/smart-city-usercenter.jar"] # 时区问题 RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index 35494ac..92a3e88 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -54,12 +54,12 @@ spring: use-global-data-source-stat: true data: mongodb: - uri: mongodb://smartcity:smartcity@192.168.0.156:27017/smartcity + uri: mongodb://smartcity:smartcity@127.0.0.1:27017/smartcity redis: database: 6 - host: 192.168.0.156 + host: 127.0.0.1 port: 6379 - # password: root + password: 666 timeout: 3000ms jedis: pool: @@ -68,7 +68,7 @@ spring: max-idle: 8 min-idle: 0 kafka: - bootstrap-servers: 192.168.0.156:9093 + bootstrap-servers: 127.0.0.1:9092 producer: # 写入失败时,重试次数。当leader节点失效,一个repli节点会替代成为leader节点,此时可能出现写入失败, # 当retris为0时,produce不会重复。retirs重发,此时repli节点完全成为leader节点,不会产生消息丢失。 @@ -111,7 +111,7 @@ file: use-min-io: true # 与use-min-io配套使用 min-io: - endpoint: http://192.168.0.156:19000 + endpoint: http://192.168.0.103:9900 access-key: smartcity secret-key: smartcity @@ -120,7 +120,7 @@ map: center-lat: 40.98896497581636 center-lng: 113.11412662267688 zoom: 8 - base-map-url: https://iserver.supermap.io/iserver/services/map-china400/rest/maps/China + base-map-url: https://iserver.supermap.io/iserver/services/map-china400/rest/maps/China_4326 # 即时通讯 websocket: