title: nginx redirect to multi docker container
body: <p>I need to configure a redirect to two different containers through the server.
  My docker-compose file:</p>
  <pre><code>web_app:
    image: ${WEB_APP_IMAGE}
    ports:
      - ${WEB_APP_PORT}:80
  
  dashboard:
    image: ${DASHBOARD_IMAGE}
    ports:
      - ${DASHBOARD_PORT}:80
  </code></pre>
  <p>nginx.conf:</p>
  <pre><code>location / {
      proxy_set_header   Host $host;
      proxy_pass http://web_app;
      proxy_redirect off;
  }
  
  location /admin {
      proxy_set_header   Host $host;
      proxy_pass http://dashboard;
      proxy_redirect off;
  }
  </code></pre>
  <p>The web app is working correctly, but the &quot;location /admin&quot; doesn't redirect me to the dashboard container. What am I doing wrong?</p>