-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (30 loc) · 817 Bytes
/
Copy pathMakefile
File metadata and controls
41 lines (30 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Docker Environment Management
DC = docker compose -f docker-compose.yml
.PHONY: help setup up down restart logs status lint clean
help:
@echo "Usage: make [target]"
@echo ""
@echo "Targets:"
@echo " setup Initialize project directories"
@echo " up Start all services in detached mode"
@echo " down Stop and remove all containers"
@echo " restart Restart all services"
@echo " logs Follow logs for all services"
@echo " status Show container status"
@echo " lint Run security and style checks on all files"
@echo " clean Remove unused data (volumes/networks)"
setup:
@./setup.sh
up: setup
$(DC) up -d
down:
$(DC) down
restart: down up
logs:
$(DC) logs -f
status:
$(DC) ps
lint:
lefthook run pre-commit --all-files
clean:
$(DC) down -v --remove-orphans