loading...

re: Add a Postgres Database With Docker to Your Project VIEW POST

TOP OF THREAD FULL DISCUSSION
re: That sounds like a good idea. But can't you connect to the database with localhost? The alternative to hardcoding the values for Postgres would be...
 

If inside the container, yes localhost is fine. But I don't know how else from host we can connect to container without using IP/port. And since docker will assign random IP address, my preference would always be to tell docker to assign specific IP.

Code of Conduct Report abuse