title: How to make nginx stop using service_name for redirecting?
body: <p>I am trying to wrap my microservice flask project with Nginx in Docker compose. Problem is that all my microservices are using <code>http://&lt;docker_container&gt;/&lt;urn&gt;</code> endpoints on various containers within Docker network, while Nginx is trying to reach <code>http://&lt;docker_container&gt;/&lt;service_name&gt;/&lt;urn&gt;</code> and obviously gets 404. How can I make it compose url without using <code>&lt;service_name&gt;</code>?</p>
  
  <p>Example of my nginx.conf</p>
  
  <pre><code>server {
      listen 80;
  
      location /api_gateway {
          proxy_pass http://api_gateway:8080;
      }
  }
  </code></pre>