Connect() failed (111: Connection refused) while connecting to upstream

Thanks mgkong for the response.
That has to be done at nginx configuration inside the docker. right?
Can you please give more insight?