Initial commit: Plane stack with MinIO, Redis, RabbitMQ, PostgreSQL
This commit is contained in:
57
makefile
Normal file
57
makefile
Normal file
@@ -0,0 +1,57 @@
|
||||
# 🌈 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"
|
||||
Reference in New Issue
Block a user