Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ If everything goes well, you can access the following services at given location
* Grafana Dashboards - http://localhost:3030
* Prometheus - http://localhost:9091

Discovery clients in this repo now default to `eureka.instance.prefer-ip-address=true` to avoid hostname resolution problems that can show up on some Windows and containerized setups.
If you need the previous Eureka hostname-based registration behavior, set `EUREKA_INSTANCE_PREFER_IP_ADDRESS=false` before starting the services.

You can tell Config Server to use your local Git repository by using `native` Spring profile and setting
`GIT_REPO` environment variable, for example:
`-Dspring.profiles.active=native -DGIT_REPO=/projects/spring-petclinic-microservices-config`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ spring:
config:
import: optional:configserver:${CONFIG_SERVER_URL:http://localhost:8888/}

eureka:
instance:
prefer-ip-address: ${EUREKA_INSTANCE_PREFER_IP_ADDRESS:true}


---
spring:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ spring:
- StripPrefix=2
- CircuitBreaker=name=genaiCircuitBreaker,fallbackUri=/fallback

eureka:
instance:
prefer-ip-address: ${EUREKA_INSTANCE_PREFER_IP_ADDRESS:true}

---
spring:
config:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ spring:
config:
import: optional:configserver:${CONFIG_SERVER_URL:http://localhost:8888/}

eureka:
instance:
prefer-ip-address: ${EUREKA_INSTANCE_PREFER_IP_ADDRESS:true}


---
spring:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ logging:
chat:
client:
advisor: DEBUG

eureka:
instance:
prefer-ip-address: ${EUREKA_INSTANCE_PREFER_IP_ADDRESS:true}
---
spring:
config:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ spring:
profiles:
active: production

eureka:
instance:
prefer-ip-address: ${EUREKA_INSTANCE_PREFER_IP_ADDRESS:true}

---
spring:
config:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ spring:
config:
import: optional:configserver:${CONFIG_SERVER_URL:http://localhost:8888/}

eureka:
instance:
prefer-ip-address: ${EUREKA_INSTANCE_PREFER_IP_ADDRESS:true}


---
spring:
Expand Down