I currently have a basic HA Proxy LB which links to a web server in Docker Cloud. I understand how to get environmental variables from Linked containers, but as the LB links to the web server in one direction, I’m unable to link back in order to the service endpoint environment variable from the load balancer. It complains that this is a ‘circular link’.
I’m trying to get the following from the load balancer:
Service endpoints: http://lb.client1.XXXX.svc.dockerapp.io:80
I need to get this service endpoint automatically so that I can place the value in a config file. Can anyone suggest a way to get this?