diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..c2bde3e4 --- /dev/null +++ b/Makefile @@ -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)