Greetings,
I’m trying to set up a single-server nomad/consul/vault. I understand it’s not HA, the purpose here is to learn more about how all of this works in a simplified environment.
I’ve been able to get nomad and consul up and running, but I’m having a problem with consul only binding to localhost. Basically, I’m looking to have traefik use the data in consul to dynamically set up proxies for other containers, but traefik can’t reach consul.
nomad and consul are both running on the host. Everything else is in containers. In order to get traefik to connect to consul, consul needs to listen on a specific ip address. I’ve tried setting both the bind and advertise ips, but it doesn’t seem to make a difference.
Any assistance is welcome.
Consul config looks like this :
data_dir = “/opt/consul”
datacenter = “dc1”
bind_addr = “192.168.1.98”
log_level = “INFO”
node_name = “dc1”
server = true
bootstrap_expect = 1
advertise_addr = “192.168.1.98”