ivangfr / keycloak-clustered

Keycloak-Clustered extends quay.io/keycloak/keycloak official Keycloak Docker image by adding JDBC_PING discovery protocol.
172 stars 57 forks source link

JGROUPS_DISCOVERY_EXTERNAL_IP to be set dynamically #13

Open michimau opened 2 years ago

michimau commented 2 years ago

@ivangfr, i took inspiration from your valuable work.

I work with an orchestrator, and I cannot manually set the JGROUPS_DISCOVERY_EXTERNAL_IP, as I do not know the ip address of the container nor on which host it will land during the orchestrations.

The simple modification sets up JGROUPS_DISCOVERY_EXTERNAL_IP upon the output provided by the command "hostname -i".

Best /michimau

alejandroalffer commented 1 year ago

Please, consider follow the documentation https://infinispan.org/docs/stable/titles/server/server.html in order to understand the services needed for infinispan:

The first node in the startup process will be the master. This startup process provides all the information you need in case of troubles.