This is a simple docker-compose setup for Postgres
To launch Postgres server just run
make up
The 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
psql
To remove container run
make clean
To remove container with its volume run
make full_clean