When you have 2 container on same docker network, to connect to each other we do not need to use exposed port, instead we use default port (port defined inside container)
Example if we define port 5433:5432, if connect from outside network we should use 5433, but if we want to connect from inside network we can use 5432.
zuka.one
©2011