PostgreSQL playground running on Docker with Pgadmin webinterface. This repo is inspired by
- https://github.com/rudibroekhuizen/docker-postgresplus
- https://smithjd.github.io/sqlpetr/articles/building-the-dvdrental-docker-image.html
- https://github.com/tadaken3/postgres-dvdrental-database-dockerfiles
Install Docker. Clone this repo to your local machine. Run docker-compose:
docker-compose up
http://localhost:5050
- Right click on Servers and click Create Server
- Name : Docker Postgres DB Server
- Check Connect now
- Hostname/address : postgres
- Port : 5432
- Maintenance database : postgres
- Password : postgres
- Check Save password
- Click blue save button
- To Run queries, right click on dvdrental under Databases under Docker Postgres DB Server, then click Query Tool
# Check CPU consumption
$ docker stats $(docker inspect -f "{{ .Name }}" $(docker ps -q))
# Remove containers plus volumes
$ docker-compose down -v --remove-orphans --rmi all