inception/Makefile

17 lines
318 B
Makefile
Raw Normal View History

2023-06-25 05:14:43 +02:00
all: up
2023-06-25 04:12:03 +02:00
2023-06-25 05:14:43 +02:00
build:
sudo docker network create --subnet=172.20.30.0/24 wordpress
mkdir ./build
up: build
2023-06-25 07:03:46 +02:00
sudo docker-compose -f ./srcs/docker-compose.yml up -d
2023-06-25 04:12:03 +02:00
2023-06-25 05:14:43 +02:00
down:
2023-06-25 07:03:46 +02:00
sudo docker-compose -f ./srcs/docker-compose.yml down
2023-06-25 04:12:03 +02:00
2023-06-25 05:14:43 +02:00
clean: down
sudo docker network rm wordpress
2023-06-25 07:03:46 +02:00
sudo docker system prune
2023-06-25 05:14:43 +02:00
rm -rf ./data ./build