The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

475768 (1) [Avatar] Offline
#1
Hi! Excelent book John! I tried the chapter 4 source code using docker with swarm mode (docker-compose.yml attached,I used my own images to prove some things). I had to change application.yml in licensing and organization services in this way:
eureka:
instance:
hostname: organizationservice (licensingservice in the other case)
preferIpAddress: false
It works!. I saw that solution in:
https://github.com/spring-cloud/spring-cloud-netflix/issues/1820
The question is: on page 108 you recommend using preferIpAddress:true, could you clarify when to use it and when not?
Thanx!