container postgres code example
Example 1: postgres container psql
psql -h localhost -p 5432
Example 2: container postgres
docker run --name teste-postgres --network=postgres-network -e "POSTGRES_PASSWORD=Postgres2018!" -p 5432:5432 -v /home/renatogroffe/Desenvolvimento/PostgreSQL:/var/lib/postgresql/data -d postgres
Example 3: postgres container psql
psql -h hostname -U username -d database_name