How to make Spring Cloud Consul register with external IP?
I run spring boot applications with spring cloud consul in docker. The application is running inside a docker network on a docker swarm.
This means that if spring consul registers with the hostname or the IP address it will get an hostname or ip address that is internal to the docker swarm. My consul server is outside the docker swarm.