new changes
This commit is contained in:
28
Makefile
Normal file
28
Makefile
Normal file
@@ -0,0 +1,28 @@
|
||||
SHELL := /bin/bash
|
||||
|
||||
COMPOSE := docker compose --env-file .env -f docker-compose.yakpanel.yml
|
||||
|
||||
.PHONY: up down logs ps init doctor migrate
|
||||
|
||||
init:
|
||||
cp -n .env.example .env || true
|
||||
@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
|
||||
Reference in New Issue
Block a user