inception/Makefile
Danny Houtworm 23fa8b90e7 bla
2023-06-25 03:14:43 +00:00

26 lines
931 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/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
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
clean: down
sudo docker network rm wordpress
rm -rf ./data ./build