17 lines
327 B
Makefile
17 lines
327 B
Makefile
all: up
|
|
|
|
build:
|
|
sudo docker network create --subnet=172.20.30.0/24 wordpress
|
|
mkdir ./build
|
|
|
|
up: build
|
|
sudo docker-compose -f ./srcs/docker-compose.yml up -d
|
|
|
|
down:
|
|
sudo docker-compose -f ./srcs/docker-compose.yml down
|
|
|
|
clean: down
|
|
sudo docker network rm wordpress
|
|
yes | sudo docker system prune -a
|
|
rm -rf ~/data ./build
|