Simple tutorial on how to quickly setup a postgres database on a Mac using Terminal and Docker Desktop.
Open terminal and run this command:
docker run --name postgres_image -e POSTGRES_PASSWORD=password -d postgres
Open the Docker CLI for the image and run this command:
psql -h localhost -p 5432 -U postgres