DEV Community

Discussion on: MongoDB with Docker: Get started in 5 minutes

Collapse
 
javitolin profile image
Javi

Running this way will only lead to missery and regretful thoughts as all the data will be lost when restarting the container.
You should add, at least in a comment, how to setup a volume to save the data in the host.