Giter Site home page Giter Site logo

darkzarich / postgresql_playground Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 40 KB

Simple docker compose file to setup PostgreSQL and pgadmin containers as well as database with some test values to connect and fiddle around

Shell 100.00%
diagram docker docker-compose pgadmin4 playground postgresql sql

postgresql_playground's Introduction

Why

The purpose of this is just to play around with PostgreSQL. It will setup a database, web ui to manage it and fill it with some test tables and data rows.

You can pretty much use it as a playground to try different PostgresSQL commands such as SELECT, JOIN, INSERT etc.

After you're done you can easily delete everything or reset to the default state.

Below I provided the diagram for this database so you can check relations.

Requirements

  • Docker

How to run

# create and fill up the .env file or leave it like is
cp .env.example .env

# run the stack
docker compose up -d

The pgadmin interface will be available by http://localhost:5050/

To connect to database through terminal:

# if you changed .env file you need to put your own user and database name instead of default
docker compose exec -it postgres psql -U admin -d testdb

Reset everything

To stop and reset the database, pgadmin data run the following in the terminal:

docker compose down -v

Diagram

Diagram

postgresql_playground's People

Contributors

darkzarich avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.