mootez
mootez

Reputation: 334

@EnableDiscoveryClient spring Boot service registration

i am running a spring boot application into docker container using eureka netflix service discovery with @EnableDiscoveryClient annotation. Running my application, it registers itself into eureka with a specific ip address (that of the docker container). i want to change this ip to the host machine ip address, so that my application will be registered into eureka with the host ip address were my container is running.

Upvotes: 2

Views: 6612

Answers (1)

Marcin Grzejszczak
Marcin Grzejszczak

Reputation: 11189

Check this issue. This topic has already been discussed there - https://github.com/spring-cloud/spring-cloud-netflix/issues/432

Upvotes: 1

Related Questions