chore: add local dev make targets
This commit is contained in:
parent
cbb32d1aac
commit
5606a79af1
1 changed files with 21 additions and 0 deletions
21
Makefile
Normal file
21
Makefile
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
COMPOSE := docker compose
|
||||
PROFILE := default
|
||||
ENV_FILE := .env
|
||||
ENV_EXAMPLE := .env.example
|
||||
|
||||
.PHONY: up down logs ps ensure-env
|
||||
|
||||
up: ensure-env
|
||||
$(COMPOSE) --profile $(PROFILE) up -d --build
|
||||
|
||||
down:
|
||||
$(COMPOSE) --profile $(PROFILE) down
|
||||
|
||||
logs:
|
||||
$(COMPOSE) --profile $(PROFILE) logs -f
|
||||
|
||||
ps:
|
||||
$(COMPOSE) --profile $(PROFILE) ps
|
||||
|
||||
ensure-env:
|
||||
@test -f $(ENV_FILE) || cp $(ENV_EXAMPLE) $(ENV_FILE)
|
||||
Loading…
Reference in a new issue