Files
yakpanel-core/Makefile

30 lines
449 B
Makefile
Raw Normal View History

2026-04-07 20:29:49 +05:30
SHELL := /bin/bash
2026-04-07 20:53:04 +05:30
COMPOSE := bash scripts/docker-compose.sh
2026-04-07 20:29:49 +05:30
.PHONY: up down logs ps init doctor migrate
init:
cp -n .env.example .env || true
2026-04-07 20:57:48 +05:30
bash scripts/ensure-env-ports.sh
2026-04-07 20:29:49 +05:30
@echo "Initialized .env (kept existing values if present)"
up:
$(COMPOSE) up -d --build
down:
$(COMPOSE) down
logs:
$(COMPOSE) logs -f --tail=100
ps:
$(COMPOSE) ps
doctor:
@docker --version
@docker compose version
migrate:
$(COMPOSE) run --rm db-migrate