This project brings you all the databases from sql-ex.ru - dockerized with Postgres!
Database dump imports automatically with docker-compose.
- Clone this repository:
git clone https://github.com/gennadis/sql-ex-exercises.git
cd sql-ex-exercises- Rename
example.envfile to.envand set your secrets
POSTGRES_USER=<user>
POSTGRES_PASSWORD=<password>
- Build and run docker container with
Postgres:
docker compose -f docker-compose.yaml up -d --build
- Connect to
Postgresdatabase:
- from host:
docker compose -f docker-compose.yaml exec postgres psql -U <user>
- from client:
psql -h <host ip address> -U <user>