Curl connection refused between docker containers in the same network

Hi, This article put some light in my problem “Connection Refused? Docker networking and how it impacts your image”,therefore I changed the environment variable ASPNETCORE_URLS in the API DocumentUploader Service of the docker-compose file
Changed ASPNETCORE_URLS=https://localhost;http://localhost to ASPNETCORE_URLS=https://0.0.0.0;http://0.0.0.0

Now, Kerstel in the Web API DocumentUploader container is able to listening all interfaces, this includes the Bridge Network Interface of the containers. Now when Docker forwards the request, the web server will be able to listen it.

My next step is to configure the Kerstel Web Service to listen only the Container’s IP.

The only thing not clear to me is that the Web App Document_Manager continues with the same configuration ASPNETCORE_URLS=https://localhost;http://localhost, and It was always working fine. Don’t know why the problem was only with the requests to the Web API.