dev: add make psql
and make redis-cli
to execute psql/redis-cli in database containers
This commit is contained in:
parent
6694b61c12
commit
a31c342af4
2 changed files with 12 additions and 0 deletions
6
Makefile
6
Makefile
|
@ -36,3 +36,9 @@ db.up:
|
|||
$(MAKE) -C ./dev/db-container up
|
||||
db.down:
|
||||
$(MAKE) -C ./dev/db-container down
|
||||
|
||||
.PHONY: psql redis-cli
|
||||
psql:
|
||||
$(MAKE) -C ./dev/db-container psql
|
||||
redis-cli:
|
||||
$(MAKE) -C ./dev/db-container redis-cli
|
||||
|
|
|
@ -4,3 +4,9 @@ up:
|
|||
$(COMPOSE) up --detach
|
||||
down:
|
||||
$(COMPOSE) down
|
||||
|
||||
.PHONY: psql redis-cli
|
||||
psql:
|
||||
$(COMPOSE) exec db psql --user=$(POSTGRES_USER) --dbname=$(POSTGRES_DB)
|
||||
redis-cli:
|
||||
$(COMPOSE) exec redis redis-cli
|
||||
|
|
Loading…
Reference in a new issue