Closed JosiahRegencia closed 6 years ago
are you saying that the postgres isn't running, isn't installed, or isn't allowing connections?
Isn't allowing connections
This is torture for you, I think 😄 I am going to take a look this weekend and see if I can iron out all the Docker issues. Meanwhile, check the IP you are connecting to. "Connection refused" means the service is not listening on that port.
Will do.
Still stuck with this
OperationalError: could not connect to server: Connection refused Is the server running on host "0.0.0.0" and accepting TCP/IP connections on port 5432?
tried solutions from here: https://stackoverflow.com/questions/44933326/trouble-connecting-to-postgresql-in-python-with-psycopg2
but there doesn't seem to be any postgresql.conf inside the db container when accessing it using docker run. The touch command doesn't create the files either.
Still trying to search for solutions.