From 5606a79af1c2287cce9ad8300c592495cfa75e97 Mon Sep 17 00:00:00 2001 From: thibaud-leclere Date: Tue, 5 May 2026 17:39:07 +0200 Subject: [PATCH] chore: add local dev make targets --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Makefile 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)