how to set mongodb docker save to host code example
Example: mount volume ~/data:/data mongo
docker volume create mongodbdata
docker run -p 27017:27017 -v mongodbdata:/data/db mongo
docker volume create mongodbdata
docker run -p 27017:27017 -v mongodbdata:/data/db mongo