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 # Connect to the primary database
.PHONY: db .PHONY: db
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 # Connect to the test database
.PHONY: db-test .PHONY: db-test
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 # Connect to the primary cache
.PHONY: cache .PHONY: cache