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
|
2023-08-14 10:41:31 +02:00
|
|
|
sudo mkdir -p ./build /home/djonker/data/adminer /home/djonker/data/wordpress /home/djonker/data/nginx
|
|
|
|
sudo touch /home/djonker/data/nginx/access.log
|
2023-08-14 03:00:42 +02:00
|
|
|
sudo cp srcs/requirements/wordpress/srcs/wordpress.conf /home/djonker/data/wordpress/wp-config.php.temp
|
|
|
|
sudo curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
|
|
|
|
sudo mv wp-cli.phar /home/djonker/data/wordpress/wp-cli.phar
|
|
|
|
sudo chmod +x /home/djonker/data/wordpress/wp-cli.phar
|
2023-08-13 23:02:18 +02:00
|
|
|
sudo curl -L https://github.com/vrana/adminer/releases/download/v4.8.1/adminer-4.8.1.php --output /home/djonker/data/adminer/adminer.php
|
2023-08-14 09:09:17 +02:00
|
|
|
sudo curl -L https://download.nextcloud.com/server/releases/latest.zip --output ~/data/nextcloud.zip
|
|
|
|
sudo unzip -d ~/data ~/data/nextcloud.zip
|
2023-06-25 05:14:43 +02:00
|
|
|
|
|
|
|
up: build
|
2023-06-25 07:03:46 +02:00
|
|
|
sudo docker-compose -f ./srcs/docker-compose.yml up -d
|
2023-08-14 10:41:31 +02:00
|
|
|
sudo systemctl restart fail2ban
|
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
|
2023-06-25 09:05:00 +02:00
|
|
|
yes | sudo docker system prune -a
|
2023-08-10 08:16:08 +02:00
|
|
|
sudo rm -rf /home/djonker/data ./build
|