connect docker postgres code example
Example 1: backup postgres database docker
docker exec -t your-db-container pg_dumpall -c -U postgres > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql
Example 2: docker postgre database connection refuse
host.docker.internal