Skip to content

Docker container for running a mongo instance on a tmpfs volume. Designed for use in test environments.

Notifications You must be signed in to change notification settings

jamesridgway/mongo-tmpfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mongo-tmpfs

mongo-tmpfs is a docker container for running a mongo instance against a tmpfs storage volume.

This container is designed to enhance performance in testing environments. Logging and preallocation is disabled and smallfiles are enabled.

The TMPFS_SIZE environment variable can be used to configure the size (in MB) of the tmpfs volume.

docker run  --name mongo-tmpfs \
            --privileged \
            -p 27017:27017 \
            jamesridgway/mongo-tmpfs:4.0

MongoDB Version

Different version of the mongo-tmpfs container are available for different versions.

Mongo Version Docker Tag
3.0 jamesridgway/mongo-tmpfs:3.0
3.2 jamesridgway/mongo-tmpfs:3.2
3.4 jamesridgway/mongo-tmpfs:3.4
3.6 jamesridgway/mongo-tmpfs:3.6
4.0 jamesridgway/mongo-tmpfs:4.0

About

Docker container for running a mongo instance on a tmpfs volume. Designed for use in test environments.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published