Hi, I tried load-balancing-nginx on my local maschine:
Linux: 5.11.11-arch1-1
Docker: 20.10.5
I started Consul and Nomad in Dev mode. When I read the rendered config I see:
nomad alloc fs acb nginx/local/load-balancer.conf
Summary
upstream backend {
server 127.0.0.1:20242;
server 127.0.0.1:22908;
server 127.0.0.1:31949;
}
server {
listen 8080;
location / {
proxy_pass http://backend;
}
}
That obviously does not work. Tthe forward in the Ngix contianer does not work because it is trying to forward to 127.0.0.1.
Does anyone has an idea how to solve that?
Regards,
Alfred