mongo-tmpfs is a MongoDB docker container designed to provide a high performance MongoDB instance for use in test environments.
The MongoDB instance has been optimised by disabling logging and preallocation and enabling smallfiles. Write speed has also been improved by ensuring the data directory is written to a tmpfs volume.
Pull the docker image:
$ docker pull jamesridgway/mongo-tmpfs:3.6
Run the container
$ docker run --name mongo-tmpfs --privileged -p 27017:27017 jamesridgway/mongo-tmpfs:3.6
You can now connect to the mongo instance on
Supported MongoDB Versions
mongo-tmpfs is available for all major MongoDB versions:
|Mongo Version||Docker Tag|