References between http servers

There folks, I will try to illustratively illustrate my case initially

I am creating three containers, one with a database with another with micro services and another with the actual application.

This environment is development!

I want in my container app to be able to refer with some friendlier url to request the information to the micro service. I tried to change my hosts file, but it does not accept to include the port, because if it works I would put specific ports for each correct container?

I believe there is a better way to resolve this issue. Thank you!

Most likely you want to use docker network (overlay) and docker service

e.g., https://docs.docker.com/engine/swarm/networking/