增加dockerfile配置
This commit is contained in:
@@ -3,7 +3,7 @@ FROM busybox:uclibc
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# 复制时区数据(从本地复制)
|
# 复制时区数据
|
||||||
COPY timezone/localtime /etc/localtime
|
COPY timezone/localtime /etc/localtime
|
||||||
COPY timezone/timezone /etc/timezone
|
COPY timezone/timezone /etc/timezone
|
||||||
COPY timezone/Shanghai /usr/share/zoneinfo/Asia/Shanghai
|
COPY timezone/Shanghai /usr/share/zoneinfo/Asia/Shanghai
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ circuitBreaker:
|
|||||||
fallbackMessage: "钱包服务暂时繁忙,请稍后再试" # 降级提示消息
|
fallbackMessage: "钱包服务暂时繁忙,请稍后再试" # 降级提示消息
|
||||||
requestTimeout: 30000
|
requestTimeout: 30000
|
||||||
distributedTTL: 300 # 钱包服务启用分布式熔断
|
distributedTTL: 300 # 钱包服务启用分布式熔断
|
||||||
adminIPs: "127.0.0.1,116.204.74.41" # 允许重置熔断器的管理员IP列表(逗号分隔)
|
adminIPs: "127.0.0.1,192.168.0.169" # 允许重置熔断器的管理员IP列表(逗号分隔)
|
||||||
market:
|
market:
|
||||||
enabled: true
|
enabled: true
|
||||||
maxFailures: 5
|
maxFailures: 5
|
||||||
@@ -148,7 +148,7 @@ circuitBreaker:
|
|||||||
redis:
|
redis:
|
||||||
# 集群模式配置方法
|
# 集群模式配置方法
|
||||||
default:
|
default:
|
||||||
address: 116.204.74.41:6379
|
address: 192.168.0.169:6379
|
||||||
db: 0
|
db: 0
|
||||||
idleTimeout: "60s" #连接最大空闲时间,使用时间字符串例如30s/1m/1d
|
idleTimeout: "60s" #连接最大空闲时间,使用时间字符串例如30s/1m/1d
|
||||||
maxConnLifetime: "90s" #连接最长存活时间,使用时间字符串例如30s/1m/1d
|
maxConnLifetime: "90s" #连接最长存活时间,使用时间字符串例如30s/1m/1d
|
||||||
@@ -158,9 +158,9 @@ redis:
|
|||||||
writeTimeout: "30s" #TCP的Write操作超时时间,使用时间字符串例如30s/1m/1d
|
writeTimeout: "30s" #TCP的Write操作超时时间,使用时间字符串例如30s/1m/1d
|
||||||
maxActive: 100
|
maxActive: 100
|
||||||
consul:
|
consul:
|
||||||
address: 116.204.74.41:8500
|
address: 192.168.0.169:8500
|
||||||
services:
|
services:
|
||||||
- name: customerService
|
- name: customerService
|
||||||
- name: test111
|
- name: test111
|
||||||
jaeger: #链路追踪
|
jaeger: #链路追踪
|
||||||
addr: 116.204.74.41:4318
|
addr: 192.168.0.169:4318
|
||||||
|
|||||||
BIN
timezone/Shanghai
Normal file
BIN
timezone/Shanghai
Normal file
Binary file not shown.
BIN
timezone/localtime
Normal file
BIN
timezone/localtime
Normal file
Binary file not shown.
1
timezone/timezone
Normal file
1
timezone/timezone
Normal file
@@ -0,0 +1 @@
|
|||||||
|
Asia/Shanghai
|
||||||
Reference in New Issue
Block a user