This commit is contained in:
Yannis Antoine
2025-07-04 13:20:12 +02:00
parent b64c645327
commit b57331d471
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -2,8 +2,8 @@
#CHANGER LE PATH en login dans le makefile, dockerfile et docker-compose file
all:
sudo mkdir -p /home/null/data/wordpress
sudo mkdir -p /home/null/data/mariadb
sudo mkdir -p /home/yantoine/data/wordpress
sudo mkdir -p /home/yantoine/data/mariadb
sudo chmod 777 /etc/hosts
echo "127.0.0.1 yantoine.42.fr" >> /etc/hosts
sudo docker-compose -f srcs/docker-compose.yml up --build -d
@@ -13,6 +13,6 @@ up:
fclean:
sudo docker-compose -f srcs/docker-compose.yml down --rmi all --volumes
sudo rm -rf /home/null/data
sudo rm -rf /home/yantoine/data
.PHONY: all up fclean
View File
+2 -2
View File
@@ -51,13 +51,13 @@ volumes:
driver_opts:
type: 'none'
o: 'bind'
device: '/home/null/data/wordpress'
device: '/home/yantoine/data/wordpress'
mariadb:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: '/home/null/data/mariadb'
device: '/home/yantoine/data/mariadb'
networks:
inception: