https://github.com/junekelly/docker-mongodb
A MongoDB docker image with persistence, suitable for development use
https://github.com/junekelly/docker-mongodb
Last synced: 11 months ago
JSON representation
A MongoDB docker image with persistence, suitable for development use
- Host: GitHub
- URL: https://github.com/junekelly/docker-mongodb
- Owner: JuneKelly
- Created: 2014-03-15T11:39:30.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-04-13T14:08:37.000Z (about 12 years ago)
- Last Synced: 2025-01-09T04:30:54.454Z (over 1 year ago)
- Language: Shell
- Size: 129 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker Mongodb
A MongoDB docker image with persistence, suitable for development use.
# Build
`docker build -t "mongodb-2.6.0" .`
# Run
Make a data directory, for example:
`mkdir -p /data/mongodb`
Run the container:
```
docker run -d -p 127.0.0.1:27017:27017 \
-v /data/mongodb:/data/db \
--name="mongodb" \
mongodb-2.6.0
```