api-client/Makefile
2026-05-05 17:39:07 +02:00

21 lines
391 B
Makefile

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)