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 7f1e057ea2
commit 9f6fe5f0b7
No known key found for this signature in database
GPG Key ID: 2E746699667C1969

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