Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 493 Bytes

README.md

File metadata and controls

33 lines (27 loc) · 493 Bytes

Working with database

The script runs PostgresSQL 14 in Docker.

To run database locally use the following commands:

  • it runs the database server:
make start
# or
docker-compose up -d db
  • it stops the database server:
make stop
#or
docker-compose stop db
  • it shows logs from the database server:
make logs
#or
docker-compose logs -f db
  • it runs psql:
make psql
#or
docker-compose exec db sh -c 'psql -U $$POSTGRES_USER $$POSTGRES_DB'