From 3ec82c6f0a6c71579ac88090bd1109d4faf42715 Mon Sep 17 00:00:00 2001 From: Antoine Guyon Date: Tue, 16 Mar 2021 15:20:02 +0100 Subject: [PATCH] update volumes in docker-compose example --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 64663d1..1153131 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ services: container_name: mariadb-glpi hostname: mariadb volumes: - - /var/lib/mysql:/var/lib/mysql + - glpi-db:/var/lib/mysql env_file: - ./mariadb.env restart: always @@ -80,10 +80,13 @@ services: volumes: - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro - - /var/www/html/glpi/:/var/www/html/glpi + - glpi-data:/var/www/html/glpi environment: - TIMEZONE=Europe/Paris restart: always +volumes: + glpi-db: + glpi-data: ``` To deploy, just run the following command on the same directory as files