支持使用docker方式运行

This commit is contained in:
lsy
2017-11-20 23:05:27 +08:00
parent 158bd56b3c
commit 478564c701
12 changed files with 24 additions and 6 deletions
@@ -1,5 +1,7 @@
#自定义参数,用于命令行替换,默认值是127.0.0.1
register.ip: 127.0.0.1
register:
server:
ip: 127.0.0.1
# 程序实例的配置,git仓库的配置
spring:
application:
@@ -14,6 +16,6 @@ spring:
eureka:
client:
service-url:
defaultZone: http://micro:fast@${register.ip}:10002/eureka/,http://micro:fast@${register.ip}:10003/eureka/ #配置所有的注册中心
defaultZone: http://micro:fast@${register.server.ip}:10002/eureka/,http://micro:fast@${register.server.ip}:10003/eureka/ #配置所有的注册中心
instance:
prefer-ip-address: true
prefer-ip-address: true