Sign inSign up

bigm/mongodb

By bigm

•Updated about 8 years ago

mongodb

Image
0

769

bigm/mongodb repository overview

#MongoDB

##Start

To start server:

docker run --rm -ti \
  -p 27017:27017 \
  -p 28017:28017 # optional web interface \
  -e MONGODB_OPTS='--storageEngine wiredTiger --nojournal' \ 
  --name mongo \
  bigm/mongodb
  

Command line utility:

# interactive
docker exec -ti mongo mongo

# show log 
docker exec mongo mongo log

##Environment variables

  • MONGODB_OPTS: command line added to mongod start command (see supervisor/mongodb.conf)

To provide more complicated configuration I recommend to mount /etc/mongodb.conf and pass

...
-v /mymongod.conf:/etc/mongod.conf
-e MONGODB_OPTS='--config /etc/mongod.conf'
...

##TODO

Tag summary

Content type

Image

Digest

sha256:cac536320…

Size

180.2 MB

Last updated

about 8 years ago

docker pull bigm/mongodb