From 9f6fe5f0b7329f58e8955e4dfb378bb6537173cd Mon Sep 17 00:00:00 2001 From: Ahmed Hashim Date: Sun, 9 Oct 2022 08:07:12 -0400 Subject: [PATCH] feat: connect to `psql` from within docker container instead of users localhost --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 49bbe76..c78cdd9 100644 --- a/Makefile +++ b/Makefile @@ -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