Connect to my local Postgres database

You must change your host to: host.docker.internal instead of localhost when using docker
This was answered in another thread ,Thanks.