diff --git a/iade-lyon-wordpresse/docker-compose.yaml b/iade-lyon-wordpresse/docker-compose.yaml index e516207..5eb305a 100644 --- a/iade-lyon-wordpresse/docker-compose.yaml +++ b/iade-lyon-wordpresse/docker-compose.yaml @@ -12,6 +12,8 @@ services: WORDPRESS_DB_USER: wp_iade_user WORDPRESS_DB_PASSWORD: --__GalereGalere@tutu54 WORDPRESS_DB_NAME: wp_db + volumes: + - wp_iade-lyon_wordpress_html:/var/www/html/wp-content db: image: mariadb:10 @@ -22,5 +24,14 @@ services: MYSQL_USER: wp_iade_user MYSQL_PASSWORD: --__GalereGalere@tutu54 MYSQL_ROOT_PASSWORD: Coucoucketchou-+_123789 - volumes: - - wp_iade-lyon_wordpress_db:/var/lib/mysql \ No newline at end of file + volumes: + - wp_iade-lyon_wordpress_db:/var/lib/mysql + +volumes: + - wp_iade-lyon_wordpress_db + - wp_iade-lyon_wordpress_html +# Documentation MariaDB +# https://hub.docker.com/_/mariadb +# +# Restore +# docker exec -i some-mariadb sh -c 'exec mysql -uroot -p"$MYSQL_ROOT_PASSWORD"' < /some/path/on/your/host/all-databases.sql \ No newline at end of file