Kategori : Docker, Linux Ubuntu, Misc, Postgresql08 April 2022 10:22:28

Connect to Postgresql Container From Other Container Within Same Network

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.

Share : Share Facebook Share Twitter
Kategori : Docker, Linux Ubuntu, Misc, Postgresql08 April 2022 10:22:28

zuka.one
©2011