-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
25 lines (19 loc) · 807 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
all:
@sudo mkdir -p /home/tliot/data/db /home/tliot/data/wordpress /home/tliot/data/minecraft-server /home/tliot/data/portainer
@docker-compose -f ./srcs/docker-compose.yml up --build -d
install :
@sudo apt-get update
@sudo apt-get upgrade -y
@sudo apt-get install -y curl gnupg ca-certificates lsb-release docker.io docker docker-compose
@sudo mkdir -p /home/tliot/data/db /home/tliot/data/wordpress /home/tliot/data/minecraft-server /home/tliot/data/portainer
@sudo ./init_domain.sh
restart :
@docker-compose -f ./srcs/docker-compose.yml stop
@docker-compose -f ./srcs/docker-compose.yml start
down:
@docker-compose -f ./srcs/docker-compose.yml down
clean:
@docker rm -f $$(docker ps -qa)
@docker volume rm -f $$(docker volume ls)
@sudo rm -rf /home/tliot
.PHONY: all clean fclean re