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'