Why use bind mount instead of docker volume for database folder? #14453
-
If I recall correctly, earlier version of docker-compose.yml did not include the I believe the correct way to backup the database data is using |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
With the docker volume approach, users can mistakenly type in |
Beta Was this translation helpful? Give feedback.
-
The primary reason to switch was people using |
Beta Was this translation helpful? Give feedback.
-
Got it, thanks |
Beta Was this translation helpful? Give feedback.
With the docker volume approach, users can mistakenly type in
docker-compose down -V
, which will remove the volume and hence remove your database.