I have followed the instructions here to install PostgreSQL through Docker. In fact, I have used the following two commands:
Run
docker run --name postgresql -d sameersbn/postgresql:9.4-2
Login
sudo docker exec -it postgresql sudo -u postgres psql
Then I do \conninfo and I get:
# You are connected to database "postgres" as user "postgres" via socket in "/var/run/postgresql" at port "5432"
What I would like to do next (but not sure how) is to connect into that database thought an external Python application that runs on my local machine (as opposed to another docket).
Should I shoot for localhost:5432 or there is something missing?