Make sure you have docker installed. It maps a folder from your machine on the docker instance so you changes can be preserved when you turn the postgres down
Use the following command to start the postgres db in docker.
docker compose up
Use the following command to shutdown the postgres db
docker compose down