-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
42 lines (30 loc) · 987 Bytes
/
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
# .env 파일이 없으면 임시 .env 파일을 생성한다.
ifeq ($(wildcard .env),)
$(info Creating .env file...)
$(shell cp .env_sample .env)
endif
# frontend 디렉토리에 .env 파일이 없으면 임시 .env 파일을 생성한다.
ifeq ($(wildcard frontend/.env),)
$(info Creating .env file in the frontend directory...)
$(shell cp .env frontend/.env)
endif
all:
docker-compose -f ./docker-compose.yml up --build --detach
debug:
docker-compose -f ./docker-compose.yml up --build #--detach
down:
docker-compose -f ./docker-compose.yml down
re: fclean all
clean: down
docker system prune -a
fclean: clean
docker-compose -f ./docker-compose.yml down -v
docker system prune --all --force --volumes
linux:
docker compose -f ./docker-compose.yml up --build --detach
linux-debug:
docker compose -f ./docker-compose.yml up --build
linux-fclean:
docker compose -f ./docker-compose.yml down -v
docker system prune --all --force --volumes
.PHONY: all down re clean