This is a simple docker-compose setup for Postgres
To launch Postgres server just run
make upThe server will listen port 5432. You should specify the POSTGRES_PASSWORD environment variable to secure the server. To configure your psql client to use the password to connect to the server, copy .pgpass to the $HOME directory and change password and username there
cp .pgpass ~/After that, you can connect to the server by executing
psqlTo remove container run
make cleanTo remove container with its volume run
make full_clean