A docker container containing the "Unischema" from the lecture "Grundlagen: Datenbanken" at TUM.
The docker container also starts a pgweb SQL-webinterface on locahost:8081
docker run --name gdb-docker -d -p 127.0.0.1:5432:5432 -p 127.0.0.1:8081:8081 ghcr.io/keinenclue/gdb-docker:latest
docker stop gdb-docker
This only works after the container has already been created
docker start gdb-docker
docker rm gdb-docker
docker logs -f gdb-docker
- Open localhost:8081 in your browser
- Start coding SQL :)
Use database through DataGrip
- Create new project
- In the UI under Database Explorer: New(+ Symbol) -> Data Source -> PostgreSQL
- Change User to
postgres
(no password is needed) - Click OK
- Select the public schema under postgres and click the reload button
- Start coding SQL :)