-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
47 lines (35 loc) · 1.09 KB
/
Makefile
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
42
43
44
45
46
47
# COLORS
GREEN = \033[1;32m
RED = \033[1;31m
RESET = \033[0m
all: dev
dev:
@echo -e "${GREEN}Building containers in dev mode...${RESET}"
@docker compose build
@make up
up:
@echo -e "${GREEN}Starting containers...${RESET}"
@docker compose up
detached:
@echo -e "${GREEN}Starting containers in detached mode...${RESET}"
@docker compose up -d
build:
@echo -e "${GREEN}Building containers images...${RESET}"
@docker compose build --no-cache
down:
@echo -e "${GREEN}Stopping containers...${RESET}"
@docker compose down
clean:
@echo -e "${GREEN}Cleaning containers...${RESET}"
@docker compose down -v --remove-orphans
stop:
@echo -e "${GREEN}Stopping containers...${RESET}"
@docker compose stop
rebuild: clean
@echo -e "${GREEN}Rebuilding containers...${RESET}"
@docker compose up --build --force-recreate
prune: clean
@echo -e "${RED}Cleaning all docker environment...${RESET}"
@docker system prune -a -f --volumes
rm -rf backend/{dist,node_modules} frontend/{node_modules}
.PHONY: dev up detached build down clean stop rebuild prune