# ๐ŸŒˆ Terminal color magic GREEN := \033[0;32m YELLOW := \033[1;33m NC := \033[0m # ๐Ÿ“„ Compose file COMPOSE_FILE := docker-compose.yaml all: help ## ๐Ÿš€ Start the entire Plane infrastructure up: @printf "$(YELLOW)๐Ÿš€ Starting Plane services...$(NC)\n" @docker-compose -f $(COMPOSE_FILE) up -d @printf "$(GREEN)โœ… All services are up and running!$(NC)\n\n" ## ๐Ÿงน Stop and clean everything down: @printf "$(YELLOW)๐Ÿงน Stopping and cleaning up...$(NC)\n" @docker-compose -f $(COMPOSE_FILE) down -v @printf "$(GREEN)โœ”๏ธ All stopped and volumes removed$(NC)\n\n" ## ๐Ÿ“œ View logs (backend & frontend) logs: @printf "$(YELLOW)๐Ÿ“œ Viewing logs (api & web)...$(NC)\n" @docker-compose -f $(COMPOSE_FILE) logs -f api web || true @printf "\n" ## ๐Ÿ”„ Restart frontend only restart-web: @printf "$(YELLOW)๐Ÿ”„ Restarting frontend...$(NC)\n" @docker-compose -f $(COMPOSE_FILE) restart web @printf "$(GREEN)๐Ÿ’ซ Restart complete$(NC)\n\n" ## ๐Ÿ“Š Status of all containers status: @printf "$(YELLOW)๐Ÿ“Š Checking container status...$(NC)\n" @docker ps --filter name=plane-db --filter name=plane-redis --filter name=plane-mq --filter name=api --filter name=web --filter name=proxy @printf "\n" ## ๐Ÿ” Check environment variables env-check: @printf "$(YELLOW)๐Ÿ” Checking environment variables (.env)...$(NC)\n" @cat .env | grep -v '^#' @printf "\n" ## ๐Ÿงญ Help help: @printf "\n" @printf "$(YELLOW)๐Ÿงญ Available commands:$(NC)\n" @printf " make up โ€” start all services\n" @printf " make down โ€” stop and remove volumes\n" @printf " make logs โ€” view api & web logs\n" @printf " make restart-web โ€” restart frontend only\n" @printf " make status โ€” show status of core components\n" @printf " make env-check โ€” check environment variables (.env)\n" @printf "\n"