-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (33 loc) · 863 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
43
44
45
46
47
48
49
up: dir
docker compose -f ./srcs/docker-compose.yml up --build
upd: dir
docker compose -f ./srcs/docker-compose.yml up --build -d
dir:
@mkdir -p /home/ouaarabe/data
@mkdir -p /home/ouaarabe/data/wordpress
@mkdir -p /home/ouaarabe/data/mariadb
down: stop
docker compose -f ./srcs/docker-compose.yml down --rmi all --volumes
sudo rm -rf /home/ouaarabe/data/*
stop:
docker compose -f ./srcs/docker-compose.yml stop
c ?= mariadb
restart:
docker restart ${c}
prune: down
docker system prune -af
re: prune up
network:
docker network inspect inception
exec:
docker exec -it ${c} /bin/bash
logs:
cd ./srcs && docker compose logs ${c}
volumes:
docker volume ls
v ?= mariadb_vol
volumes_rm:
docker volume rm ${v}
vinspect:
docker volume inspect ${v}
.PHONY: up upd down stop restart exec logs prune re network volumes volumes_rm vinspect