-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (27 loc) · 801 Bytes
/
Copy pathMakefile
File metadata and controls
36 lines (27 loc) · 801 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
RED = \033[0;31m
YELLOW = \033[0;33m
GREEN = \033[0;32m
NC = \033[0m
RUN:
docker compose -f ./srcs/docker-compose.yml up -d
DEBUG:
docker compose -f ./srcs/docker-compose.yml build --no-cache
docker compose -f ./srcs/docker-compose.yml up -d
STOP:
docker compose -f `./srcs/docker-compose.yml down
PS:
docker compose -f ./srcs/docker-compose.yml ps
LOGS:
docker compose -f ./srcs/docker-compose.yml logs -f
RESTART:
docker compose -f ./srcs/docker-compose.yml restart
DELETE:
docker compose -f ./srcs/docker-compose.yml down --rmi all --volumes --remove-orphans
@echo "$(RED)Inception-42: All deleted!$(NC)"
STATUS:
@echo "$(GREEN)Inception-42: Docker status$(NC)"
@docker system df
@docker volume ls
@docker image ls
@docker ps -a
.PHONY: RUN STOP PS LOGS RESTART DELETE STATUS