修改配置文件
This commit is contained in:
parent
02da7ff00c
commit
3621331613
@ -1,7 +1,7 @@
|
|||||||
FROM openjdk:8u292-jre-buster
|
FROM openjdk:8u292-jre-buster
|
||||||
ARG JAR_FILE=/target/*.jar
|
ARG JAR_FILE=/target/*.jar
|
||||||
COPY ${JAR_FILE} smart-city-usercenter.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
|
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
|
||||||
|
@ -54,12 +54,12 @@ spring:
|
|||||||
use-global-data-source-stat: true
|
use-global-data-source-stat: true
|
||||||
data:
|
data:
|
||||||
mongodb:
|
mongodb:
|
||||||
uri: mongodb://smartcity:smartcity@192.168.0.156:27017/smartcity
|
uri: mongodb://smartcity:smartcity@127.0.0.1:27017/smartcity
|
||||||
redis:
|
redis:
|
||||||
database: 6
|
database: 6
|
||||||
host: 192.168.0.156
|
host: 127.0.0.1
|
||||||
port: 6379
|
port: 6379
|
||||||
# password: root
|
password: 666
|
||||||
timeout: 3000ms
|
timeout: 3000ms
|
||||||
jedis:
|
jedis:
|
||||||
pool:
|
pool:
|
||||||
@ -68,7 +68,7 @@ spring:
|
|||||||
max-idle: 8
|
max-idle: 8
|
||||||
min-idle: 0
|
min-idle: 0
|
||||||
kafka:
|
kafka:
|
||||||
bootstrap-servers: 192.168.0.156:9093
|
bootstrap-servers: 127.0.0.1:9092
|
||||||
producer:
|
producer:
|
||||||
# 写入失败时,重试次数。当leader节点失效,一个repli节点会替代成为leader节点,此时可能出现写入失败,
|
# 写入失败时,重试次数。当leader节点失效,一个repli节点会替代成为leader节点,此时可能出现写入失败,
|
||||||
# 当retris为0时,produce不会重复。retirs重发,此时repli节点完全成为leader节点,不会产生消息丢失。
|
# 当retris为0时,produce不会重复。retirs重发,此时repli节点完全成为leader节点,不会产生消息丢失。
|
||||||
@ -111,7 +111,7 @@ file:
|
|||||||
use-min-io: true
|
use-min-io: true
|
||||||
# 与use-min-io配套使用
|
# 与use-min-io配套使用
|
||||||
min-io:
|
min-io:
|
||||||
endpoint: http://192.168.0.156:19000
|
endpoint: http://192.168.0.103:9900
|
||||||
access-key: smartcity
|
access-key: smartcity
|
||||||
secret-key: smartcity
|
secret-key: smartcity
|
||||||
|
|
||||||
@ -120,7 +120,7 @@ map:
|
|||||||
center-lat: 40.98896497581636
|
center-lat: 40.98896497581636
|
||||||
center-lng: 113.11412662267688
|
center-lng: 113.11412662267688
|
||||||
zoom: 8
|
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:
|
websocket:
|
||||||
|
Loading…
Reference in New Issue
Block a user