-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
49 lines (38 loc) · 2.18 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
48
49
# Colors
RED = \033[1;31m
GREEN = \033[1;32m
YELLOW = \033[1;33m
BLUE = \033[1;34m
RESET = \033[0m
all: up
build:
@echo "$(BLUE)██████████████████████ Building Images ███████████████████████$(RESET)"
docker compose build
up:
@echo "$(GREEN)██████████████████████ Running Containers ██████████████████████$(RESET)"
@docker compose up -d
@echo "$(RED)╔════════════════════════════║NOTE:║════════════════════════╗$(RESET)"
@echo "$(RED)║ $(BLUE) You can see The Containers logs using $(YELLOW)make logs $(RED)║$(RESET)"
@echo "$(RED)╚═══════════════════════════════════════════════════════════╝$(RESET)"
down:
@echo "$(RED)██████████████████ Removing All Containers ██████████████████$(RESET)"
@docker compose down
start:
@echo "$(RED)████████████████████ Starting Containers █████████████████████$(RESET)"
docker compose start
stop:
@echo "$(RED)████████████████████ Stoping Containers █████████████████████$(RESET)"
docker compose stop
logs:
@echo "$(GREEN)██████████████████████ Running Containers ██████████████████████$(RESET)"
docker compose logs
prune: down
@echo "$(RED)█████████████████████ Remove Everything ██████████████████████$(RESET)"
@rm -rf backend/node_modules
@rm -rf frontend/node_modules
@rm -rf frontend/dist
@rm -rf backend/dist
@rm -rf database/data
@docker system prune -f -a
re: prune all
.PHONY: all build up down start stop logs prune re