inception/Makefile

26 lines
931 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
sudo docker-compose -f ./srcs/mariadb/docker-compose.yml up -d
sudo docker-compose -f ./srcs/wordpress/docker-compose.yml up -d
sudo docker-compose -f ./srcs/nginx/docker-compose.yml up -d
sudo docker-compose -f ./srcs/redis/docker-compose.yml up -d
sudo docker-compose -f ./srcs/ftp/docker-compose.yml up -d
sudo docker-compose -f ./srcs/adminer/docker-compose.yml up -d
2023-06-25 04:12:03 +02:00
2023-06-25 05:14:43 +02:00
down:
sudo docker-compose -f ./srcs/mariadb/docker-compose.yml down
sudo docker-compose -f ./srcs/wordpress/docker-compose.yml down
sudo docker-compose -f ./srcs/nginx/docker-compose.yml down
sudo docker-compose -f ./srcs/redis/docker-compose.yml down
sudo docker-compose -f ./srcs/ftp/docker-compose.yml down
sudo docker-compose -f ./srcs/adminer/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
rm -rf ./data ./build