postgresql container docker code example
Example 1: postgres container psql
psql -h localhost -p 5432
Example 2: postgres container psql
psql -h hostname -U username -d database_name
psql -h localhost -p 5432
psql -h hostname -U username -d database_name