api-client/Makefile
2026-05-06 09:57:24 +02:00

20 lines
288 B
Makefile

COMPOSE := docker compose
ENV_FILE := .env
ENV_EXAMPLE := .env.example
.PHONY: up down logs ps ensure-env
up: ensure-env
$(COMPOSE) up -d --build
down:
$(COMPOSE) down
logs:
$(COMPOSE) logs -f
ps:
$(COMPOSE) ps
ensure-env:
@test -f $(ENV_FILE) || cp $(ENV_EXAMPLE) $(ENV_FILE)