A mongodb image with import/export capabilities
10K+
A simple docker-compose example:
services:
data:
image: washpost/mongodb-vandelay
environment:
WATCH: 'true'
ports:
- 27017:27017
volumes:
- ./data/db:/data/db:rw
- ./data/dumps:/data/dumps:rw
- ./data/restore:/data/restore:rw
To dump:
docker exec $(docker ps | grep ':27017' | awk '{ print $1; }') ./dump.sh
To restore, just drag-and-drop a tarball generated from the above dump command into the restore directory
docker pull washpost/mongodb-vandelay:latest