feat: connect to psql from within docker container instead of users localhost
This commit is contained in:
parent
ea1ee27b89
commit
ac0adde9e6
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue