Simple PostgreSQL 13 setup on Docker with sample data.
-
Clone the repository
git clone https://github.com/jpuris/postgresql-docker-demo.git cd postgresql-docker-demo
-
Starting the server
docker compose up -d
-
Loading data
docker exec -it postgresql-docker-demo psql -U postgres -f /data/demo_ddl.sql
(Optional) Checking the server logs
docker logs postgresql-docker-demo --follow
Use your favorite DB client.
host: 127.0.0.1
port: 5432
username: postgres
password: postgres
docker compose down
Data sets were retrieved from https://www.w3schools.com/SQL/ WebSQL application.
MIT