Open devotox opened 8 years ago
I'm new to all this... I am wondering why so many ports for consul?
The examples I've seen for running the consul node with docker run
look like:
-p 8400:8400 -p 8500:8500 -p 8600:53/udp
I believe consul has multiple ports you can pass data into but all different protocols
After a bit of testing and fiddling with a lot of the 3 images settings i have found this configuration out.
This works as part of a compose file. as you can see there was no need for changing the network mode or hacking to get the docker ip.
The key was using the links. This must be an issue in docker compose it self as the network should already allow em to link to those services by name but alas this is not possible it seems at the time from the command option. now the -ip $DOCKER_HOST_IP is the last thing that needs to be taking out for a fully ubiquitous solution and nothing i can think of seems possible so i ask for your help on this part and i can then write up a full solution for others to use