title: 404 error: Trying to deploy ocelot gateway inside docker to call microservices
body: <p>We have developed two ASP.NET CORE (5.0) microservices and deployed them inside docker
  http://localhost:28621/stock
  http://localhost:62362/user</p>
  <p>Both are easily accessible from browser.</p>
  <h2>We have used ocelot gateway for API gateway.
  When we deployed it inside docker we got following error</h2>
  <p><code>warn: Ocelot.DownstreamRouteFinder.Middleware.DownstreamRouteFinderMiddleware[0] requestId: 0HM8658EF6KHC:00000002, previousRequestId: no previous request id, message: DownstreamRouteFinderMiddleware setting pipeline errors. IDownstreamRouteFinder returned Error Code: UnableToFindDownstreamRouteError Message: Failed to match Route configuration for upstream path: /user, verb: GET. warn: Ocelot.Responder.Middleware.ResponderMiddleware[0] requestId: 0HM8658EF6KHC:00000002, previousRequestId: no previous request id, message: Error Code: UnableToFindDownstreamRouteError Message: Failed to match Route configuration for upstream path: /user, verb: GET. errors found in ResponderMiddleware. Setting error response for request path:/user, request method: GET  </code>-------------------------------------------------------------------------------------------------</p>
  <h2>ocelot.Development.json is as follows</h2>
  <pre><code> {
    &quot;Routes&quot;: [
      {
        &quot;DownstreamPathTemplate&quot;: &quot;/user&quot;,
        &quot;DownstreamScheme&quot;: &quot;http&quot;,
        &quot;DownstreamHostAndPorts&quot;: [
          {
            &quot;Host&quot;: &quot;localhost&quot;,
            &quot;Port&quot;: 62362
          }
        ],
        &quot;UpstreamPathTemplate&quot;: &quot;/user&quot;,
        &quot;UpstreamHttpMethod&quot;: [ &quot;Get&quot; ]
      },
      {
        &quot;DownstreamPathTemplate&quot;: &quot;/stock&quot;,
        &quot;DownstreamScheme&quot;: &quot;http&quot;,
        &quot;DownstreamHostAndPorts&quot;: [
          {
            &quot;Host&quot;: &quot;localhost&quot;,
            &quot;Port&quot;: 28621
          }
        ],
        &quot;UpstreamPathTemplate&quot;: &quot;/stock&quot;,
        &quot;UpstreamHttpMethod&quot;: [ &quot;Get&quot; ]
      }
  
    ],
    &quot;GlobalConfiguration&quot;: {
      &quot;BaseUrl&quot;: &quot;https://localhost:5021&quot;
    }
  }
  </code></pre>
  <hr />
  <h2>startup.cs</h2>
  <pre><code>public class Startup
  {
      public void ConfigureServices(IServiceCollection services)
      {
          services.AddOcelot();
  
      }
  
      public async void Configure(IApplicationBuilder app, IWebHostEnvironment env)
      {
          if (env.IsDevelopment())
          {
              app.UseDeveloperExceptionPage();
          }
          app.UseRouting();
          app.UseEndpoints(endpoints =&gt;
          {
              endpoints.MapControllers();
          });
          await app.UseOcelot();
      }
  }
  </code></pre>
  <hr />
  <h2>program.cs</h2>
  <pre><code>    public class Program
      {
          public static void Main(string[] args)
          {
              CreateHostBuilder(args).Build().Run();
          }
  
          public static IHostBuilder CreateHostBuilder(string[] args) =&gt;
                Host.CreateDefaultBuilder(args)
                     .ConfigureAppConfiguration((hostingContext, config) =&gt;
                     {
                         config.AddJsonFile($&quot;ocelot.                                          
   {hostingContext.HostingEnvironment.EnvironmentName}.json&quot;, true, true);
                     })
                    .ConfigureWebHostDefaults(webBuilder =&gt;
                    {
                        webBuilder.UseStartup&lt;Startup&gt;();
                    });
      }
  </code></pre>
  <hr />
  <p>Please guide us where we are doing mistake
  we are using .net core 5.0</p>
  <p>Thanks</p>