bootstrap.yml 721 B

12345678910111213141516171819202122232425262728293031323334
  1. server:
  2. port: 1025
  3. spring:
  4. security:
  5. user:
  6. name: pig
  7. password: pig
  8. application:
  9. name: pig-eureka
  10. cloud:
  11. config:
  12. enabled: false
  13. # docker-compose部署时候 hostname 换成pigx-eureka
  14. # 类似的 redis 使用pigx-redis ,gateway 换成 pigx-gateway
  15. eureka:
  16. instance:
  17. hostname: localhost
  18. prefer-ip-address: true
  19. client:
  20. register-with-eureka: false
  21. fetch-registry: false
  22. service-url:
  23. defaultZone: http://pig:pig@${eureka.instance.hostname}:${server.port}/eureka/
  24. server:
  25. eviction-interval-timer-in-ms: 4000
  26. enable-self-preservation: false
  27. renewal-percent-threshold: 0.9
  28. management:
  29. endpoints:
  30. web:
  31. exposure:
  32. include: '*'