-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
63 lines (49 loc) · 1.53 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: seseo <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/01/25 16:48:49 by seseo #+# #+# #
# Updated: 2023/05/25 23:44:25 by seseo ### ########.fr #
# #
# **************************************************************************** #
# for docker compose
DC := docker-compose
DC_SRC := ./docker-compose.yml
DI := docker image
DIL := $(DI)s
DV := docker volume
DVL := $(DV) ls
DN := docker network
DNL := $(DN) ls
TARGET := transcendence
.PHONY: all
all: up
.PHONY: up
up:
mkdir -p ./db
cp .env ./nginx/front/.env
$(DC) -f $(DC_SRC) -p $(TARGET) up --build -d
.PHONY: down
down:
$(DC) -f $(DC_SRC) -p $(TARGET) down
.PHONY: re
re: clean
make up
.PHONY: clean
clean:
$(DC) -f $(DC_SRC) -p $(TARGET) down -v
.PHONY: fclean
fclean:
$(DC) -f $(DC_SRC) -p $(TARGET) down -v --rmi all
.PHONY: img_ls
img_ls:
$(DIL)
.PHONY: vol_ls
vol_ls:
$(DVL)
.PHONY: net_ls
net_ls:
$(DNL)