Could not access engine-rest api from inside the docker container

Hi all,

I am trying to call the camunda engine-rest api from inside my docker container.

Am getting the below error.

java.net.ConnectException Connection timed out.

I could access the same endpoint through browser.

What could be the issue.Any suggestion?

Thanks & Regards,
Vinu S