diff --git a/docker-compose.yml b/docker-compose.yml index 84e044da..4abae3ec 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -22,6 +22,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