├── admin-service-local.yml ├── admin-service.yml ├── airport-service-local.yml ├── airport-service.yml ├── application.yml ├── conditions-service-local.yml ├── conditions-service.yml ├── discovery-service.yml ├── gateway-service-local.yml ├── gateway-service.yml ├── tracing-service-local.yml ├── tracing-service.yml ├── weather-service-local.yml └── weather-service.yml /admin-service-local.yml: -------------------------------------------------------------------------------- 1 | #--- 2 | spring: 3 | config: 4 | activate: 5 | on-profile: local 6 | eureka: 7 | client: 8 | serviceUrl: 9 | defaultZone: http://discovery-service:8761/eureka/ 10 | -------------------------------------------------------------------------------- /admin-service.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 9090 3 | -------------------------------------------------------------------------------- /airport-service-local.yml: -------------------------------------------------------------------------------- 1 | #--- 2 | spring: 3 | config: 4 | activate: 5 | on-profile: local 6 | zipkin: 7 | baseUrl: http://tracing-service:9411 8 | server: 9 | port: 8083 10 | eureka: 11 | client: 12 | serviceUrl: 13 | defaultZone: http://discovery-service:8761/eureka/ 14 | -------------------------------------------------------------------------------- /airport-service.yml: -------------------------------------------------------------------------------- 1 | # airports: 2 | # cache: 3 | # ttl: 60 4 | # heap-size: 100 5 | 6 | # --- 7 | # spring: 8 | # config: 9 | # activate: 10 | # on-profile: default 11 | eureka: 12 | instance: 13 | # enable to register multiple app instances with a random server port 14 | instance-id: ${spring.application.name}:${random.uuid} 15 | 16 | airport: KMAH 17 | 18 | fbo: 19 | fuel: 100LL 20 | -------------------------------------------------------------------------------- /application.yml: -------------------------------------------------------------------------------- 1 | # COMMON APPLICATION PROPERTIES 2 | 3 | server: 4 | # start services on random port by default 5 | port: 0 6 | # The stop processing uses a timeout which provides a grace period during which existing requests 7 | # will be allowed to complete but no new requests will be permitted 8 | shutdown: graceful 9 | 10 | # Enable all actuator endpoints FOR DEMO PURPOSES ONLY! 11 | # management.endpoints.web.exposure.include: "*" 12 | # Below in that beautiful YAML! 13 | 14 | # Logging 15 | # logging.level.org.springframework: INFO 16 | logging: 17 | level: 18 | org: 19 | springframework: INFO 20 | 21 | # Metrics 22 | management: 23 | endpoint: 24 | metrics: 25 | enabled: true 26 | prometheus: 27 | enabled: true 28 | endpoints: 29 | web: 30 | exposure: 31 | include: '*' 32 | metrics: 33 | export: 34 | prometheus: 35 | enabled: true 36 | info: 37 | env: 38 | enabled: true 39 | 40 | # Identification 41 | info: 42 | app: 43 | name: ${spring.application.name} 44 | 45 | # Eureka 46 | eureka: 47 | client: 48 | healthcheck: 49 | enabled: true 50 | 51 | # testplane: Lance 52 | 53 | # test: 54 | # plane: Saratoga 55 | 56 | # bestplane: '{cipher}af3ac2cda0bc35f0c55f76f5e2d57d11b8e93078790662af40918e2e61554146' 57 | 58 | avwx: 59 | token: '{cipher}a55eebf22029f129c7aab38026ea536f4b4f2199a1d176215ec81f1b12a791afa4fce34cc08668090688654be307322f968717ec09728e842537f403c05b5b80' 60 | -------------------------------------------------------------------------------- /conditions-service-local.yml: -------------------------------------------------------------------------------- 1 | #--- 2 | spring: 3 | config: 4 | activate: 5 | on-profile: local 6 | zipkin: 7 | baseUrl: http://tracing-service:9411 8 | server: 9 | port: 8085 10 | eureka: 11 | client: 12 | serviceUrl: 13 | defaultZone: http://discovery-service:8761/eureka/ 14 | -------------------------------------------------------------------------------- /conditions-service.yml: -------------------------------------------------------------------------------- 1 | # spring: 2 | # profiles: default 3 | eureka: 4 | instance: 5 | # enable to register multiple app instances with a random server port 6 | instance-id: ${spring.application.name}:${random.uuid} 7 | -------------------------------------------------------------------------------- /discovery-service.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8761 3 | 4 | eureka: 5 | instance: 6 | hostname: localhost 7 | # standalone mode 8 | client: 9 | # registerWithEureka: false 10 | # fetchRegistry: false 11 | serviceUrl: 12 | defaultZone: http://${eureka.instance.hostname}:${server.port}/eureka/ 13 | -------------------------------------------------------------------------------- /gateway-service-local.yml: -------------------------------------------------------------------------------- 1 | #--- 2 | spring: 3 | config: 4 | activate: 5 | on-profile: local 6 | zipkin: 7 | baseUrl: http://tracing-service:9411 8 | 9 | server: 10 | port: ${PORT:8080} 11 | compression: 12 | enabled: true 13 | mime-types: application/json,text/css,application/javascript 14 | min-response-size: 2048 15 | 16 | eureka: 17 | client: 18 | serviceUrl: 19 | defaultZone: http://discovery-service:8761/eureka/ 20 | 21 | management: 22 | endpoints: 23 | web: 24 | exposure: 25 | include: "*" 26 | -------------------------------------------------------------------------------- /gateway-service.yml: -------------------------------------------------------------------------------- 1 | spring: 2 | cloud: 3 | gateway: 4 | routes: 5 | - id: report 6 | uri: lb://report-service 7 | predicates: 8 | - Path=/report/** 9 | filters: 10 | - RewritePath=/report, / 11 | - id: ap 12 | uri: lb://airport-service/ 13 | predicates: 14 | - Path=/airport/** 15 | filters: 16 | - StripPrefix=1 17 | - id: wx 18 | uri: lb://weather-service/ 19 | predicates: 20 | - Path=/weather/** 21 | filters: 22 | - StripPrefix=1 23 | - id: cond 24 | uri: lb://conditions-service/ 25 | predicates: 26 | - Path=/conditions/** 27 | filters: 28 | - StripPrefix=1 29 | 30 | eureka: 31 | instance: 32 | # enable to register multiple app instances with a random server port 33 | instance-id: ${spring.application.name}:${random.uuid} 34 | -------------------------------------------------------------------------------- /tracing-service-local.yml: -------------------------------------------------------------------------------- 1 | #--- 2 | spring: 3 | config: 4 | activate: 5 | on-profile: local 6 | eureka: 7 | client: 8 | serviceUrl: 9 | defaultZone: http://discovery-service:8761/eureka/ 10 | -------------------------------------------------------------------------------- /tracing-service.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 9411 3 | 4 | # --- 5 | # spring: 6 | # profiles: default 7 | eureka: 8 | instance: 9 | # enable to register multiple app instances with a random server port 10 | instance-id: ${spring.application.name}:${random.uuid} 11 | -------------------------------------------------------------------------------- /weather-service-local.yml: -------------------------------------------------------------------------------- 1 | #--- 2 | spring: 3 | config: 4 | activate: 5 | on-profile: local 6 | zipkin: 7 | baseUrl: http://tracing-service:9411 8 | server: 9 | port: 8084 10 | eureka: 11 | client: 12 | serviceUrl: 13 | defaultZone: http://discovery-service:8761/eureka/ 14 | -------------------------------------------------------------------------------- /weather-service.yml: -------------------------------------------------------------------------------- 1 | # spring: 2 | # profiles: default 3 | eureka: 4 | instance: 5 | # enable to register multiple app instances with a random server port 6 | instance-id: ${spring.application.name}:${random.uuid} 7 | --------------------------------------------------------------------------------