Docker
There is the Docker network, which is a set of Docker containers. We have to think of hostname and ports in three points:
From inside the Docker network: Another container must be accessed by the service name of the container. For example, postgres:5432 is how
From inside the container itself