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?
In case, it is a django backend application, you can do something like this.
docker exec -it container_id python manage.py dbshell