https://github.com/jamesridgway/mongo-tmpfs
Docker container for running a mongo instance on a tmpfs volume. Designed for use in test environments.
https://github.com/jamesridgway/mongo-tmpfs
docker-container mongo mongo-instance mongo-tmpfs tmpfs-volume
Last synced: 12 months ago
JSON representation
Docker container for running a mongo instance on a tmpfs volume. Designed for use in test environments.
- Host: GitHub
- URL: https://github.com/jamesridgway/mongo-tmpfs
- Owner: jamesridgway
- Created: 2015-11-23T21:11:12.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-10-07T14:17:21.000Z (almost 8 years ago)
- Last Synced: 2025-04-07T11:46:08.217Z (over 1 year ago)
- Topics: docker-container, mongo, mongo-instance, mongo-tmpfs, tmpfs-volume
- Language: Dockerfile
- Size: 5.86 KB
- Stars: 10
- Watchers: 2
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mongo-tmpfs
[mongo-tmpfs](https://hub.docker.com/r/jamesridgway/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 |