title: Docker jwilder/nginx-proxy location configuration
body: <p>I have 3 ( app-client,app-a, app-b )applications are running in jetty server and one NGINX load balancer ( app-lb). All (internal or external) requests are coming   to my application  through load balancer. Based on web context ( /app-a/ or /app-b/) name, LB will forward the request to the correct application. I have configured (location /app-a/ and location /app-b and location /app-client) in LB. app-a will call app-b and app-b will call app-a , app-client will be called from outside world, app-client will call app-a or app-b. </p>
  
  <p>I have written Docker-composer for my application. To avoid circular dependency, I have used Docker net. it is working good.</p>
  
  <p>If I scale up my application. LB doesn't know about this new application container.  </p>
  
  <p>I have gone though few tutorials and trying to use <strong>jwilder/nginx-proxy</strong> instead of NGINX. if I use that using VIRTUAL_HOST=app-name variable it is updating upstream in configuration file.But, My application is running based on location mapping for each container.if I don't specify, how request will go to correct container. </p>
  
  <p>How to give location mapping in LB's default.conf file like below since this configuration updated by container dynamically <strong>or</strong> how to make internal call urls.</p>
  
  <pre><code>   location /app-a {
              proxy_pass http://app-a;
      }
     location /app-client {
              proxy_pass http://app-client;
      }
  
  
     location /app-b {
              proxy_pass http://app-b;
      }
  Request from outside: http://IP:9090/app-client/
  Internal call : http://app-lb:80/app-a/
                  http://app-lb:80/app-b
  
     LB exposed port no is 9090
  </code></pre>