SpringCloud Gateway : docker image for dev
1.8K
spring:
application:
name: gateway
cloud:
gateway:
globalcors:
corsConfigurations:
'[/**]':
allowedOrigins: "*"
allowedMethods: "*"
locator:
enabled: true
routes:
- id:
uri:
predicates:
- Path=/api/v1/**
discovery:
locator:
lower-case-service-id: true
consul:
host: 127.0.0.1
port: 8500
discovery:
service-name: gateway
health-check-interval: 10s
tags: gateway
health-check-path: /actuator/health
register-health-check: true
prefer-ip-address: true
instance-id: ${spring.application.name}:${spring.cloud.client.ip-address}
health-check-url: http://${spring.cloud.client.ip-address}:${server.port}/actuator/health
boot:
admin:
client:
url: http://127.0.0.1:8099 #server端地址
username: admin #对应server端的账号密码,不配置就监控不到这个client。
password: admin
instance:
service-base-url: http://127.0.0.1:8099 #client地址,
#不配置的情况下,在打包的时候会有提示。不影响运行。
server:
port: 9000
management:
endpoints:
web:
exposure:
include: "*"
endpoint:
health:
show-details: ALWAYS
health:
consul:
enabled: false
hystrix:
command:
fallbackcmd:
execution:
isolation:
thread:
timeoutInMilliseconds: 5000
Content type
Image
Digest
Size
316.1 MB
Last updated
almost 7 years ago
docker pull starrier/gateway-dev:0.0.2