feat: connect to psql from within docker container instead of users localhost

This commit is contained in:
Ahmed Hashim 2022-10-09 08:07:12 -04:00
parent ea1ee27b89
commit ac0adde9e6

View file

@ -1,12 +1,12 @@
# Connect to the primary database
.PHONY: db
db:
psql postgresql://admin:admin@localhost:5432/app
docker compose exec -it db psql postgresql://admin:admin@localhost:5432/app
# Connect to the test database
.PHONY: db-test
db-test:
psql postgresql://admin:admin@localhost:5432/app_test
docker compose exec -it db psql postgresql://admin:admin@localhost:5432/app_test
# Connect to the primary cache
.PHONY: cache