hazelcast/hazelcast-eureka

Wrong ip used by docker node

moreiramarti opened this issue · 5 comments

Hello,

I just implemented your plugin and it works but when my client registers with eureka, docker container hostname is used.
Is there a way to customize the ip adress or the hostname of a client?

Regards,
Martinho MOREIRA

Hi @moreiramarti ,

Can you please give more info?
Are you launching hazelcast members as docker containers? Did you create your own docker image with hazelcast-eureka plugin?
When you say client, do you hazelcast member?

Hi,

Thanks you for taking time to answer me.
Yes, client is an hazelcast member.

I'm launching a custom app inside an Home made container (with my own image).

When i start my app it registers well with my eureka instance but the IP address registered on eureka seemed to be the docker node address and not the container one so my other apps instances can't communicate throught this address.

I need a way tout customize IP address of my app like it's possible with native eureka client (eureka.instance.ip-address).

Sorry if i'm not clear,
Martinho

Thanks @googlielmo
It's what I was looking for.

Thank you for your help.