I have Postgresql on a server in a docker container. How can I connect to it from the outside, that is, from my local computer? What setting should I apply to allow that?
first open the docker image for the postgres
docker exec -it
then u will get the root --root@868594e88b53:/# it need the database connection
root@868594e88b53:/#
psql postgresql://:@postgres:5432/