This repository contains a Docker setup for PostgreSQL and pgAdmin.
- Clone this repository by running the
git clone https://github.com/Kaltsoon/postgresql-quickstart.git(requires git) or click the "Code" button in the GitHub repository page and choose "Download ZIP". - Open the directory in the command-line an run the
docker compose upcommand. The setup takes a minute or two - Open pgAdmin by visiting http://localhost:8888 in web browser. Log in using the email "user@provider.com" and password "password". You don't have to worry about poor choice of password, because the database won't be accessible outside your computer
You can shut down PostgreSQL and pgAdmin by typing Ctrl + c in the command-line window in which you ran the docker compose up command. Running the docker compose up command again, will restart the setup. No data will be lost if you shut down the setup.