From 737c933b8cbce2a8dc10314da8fe8c245df3ac9a Mon Sep 17 00:00:00 2001 From: Jean-Philippe Murray Date: Sat, 6 Jun 2020 15:15:59 -0400 Subject: [PATCH] give the option to persist the database to the host --- docker-compose.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 7a828768..5089cd31 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -21,6 +21,9 @@ services: restart: always volumes: - db:/var/lib/mysql + # If you want to persist data on the host, comment the line above this one... + # and uncomment the line under this one. + #- ./docker-compose/db/data:/var/lib/mysql:rw,delegated environment: MYSQL_USER: crater MYSQL_PASSWORD: crater