Hello there. I need to deliver a solution using HAproxy, consul-template and docker.
I came up with this structure running on AWS.
Running HAProxy and Consul-template and consul(bootstrap/leader). This instance will be my gateway load balance calls to the docker containers.
consul(server) and docker.
Multiple containers running consul and tomcat(REST service).
For these containers, in consul config, they should connect to the instance B consul, but I keep getting errors about the consul ports already in use, probably because there is a consul running in that instance.
How can I export and publish ports out of these containers and manage effective communication between then for the consul service?
Please help me gurus.