A Docker container for running mongodb with support for backups, based on Alpine Linux.
Full support for backup-agent
Requires that Docker be installed on the host machine.
# Create some directory where your database data will be stored.
$ mkdir /home/youruser/mongo_data
$ docker run --name mongodb -d \
--volume /home/youruser/mongo_data:/data/db \
--publish 27017:27017 \
--publish 9191:9191 \
tiberiuc/mongodb
$ docker logs -f mongodb
[ ... ]
Currently mongodb is run inside supervisor
Backup
curl http://localhost:9191/backup -o mongodb.tgz
Restore
curl http://localhost:9191/restore --data-binary @./mongodb.tgz