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