How do I backup a MongoDB data volume to host using docker-compose?

  docker, docker-compose, mongodb

I’m trying to make it so every time my Docker application is run, a backup of all data in the mongodb container is backed up to a folder on the host computer. How do I do that?

Source: Docker Questions

LEAVE A COMMENT