COMPOSE ?= docker compose

.PHONY: all build up start down stop restart logs ps clean

all: start

build:
	$(COMPOSE) build

up start: build
	$(COMPOSE) up -d

down stop:
	$(COMPOSE) down

restart:
	$(COMPOSE) down
	$(COMPOSE) up -d --build

logs:
	$(COMPOSE) logs -f

ps:
	$(COMPOSE) ps

clean:
	$(COMPOSE) down --rmi local --remove-orphans
