Use docker to run PostgreSQL is handy. First, prepare docker-compose.yml file: Notice that any file put into docker-entrypoint-initdb.d folder, will be executed automatically while database is initialized. The init.sql will create a simple table: \c mydb; CREATE TABLE IF NOT EXISTS products ( id SERIAL PRIMARY KEY, …