Sign inSign up

broadiq/mongodb

By broadiq

Updated about 8 years ago

A development version of MongoDB v 3.6.

Image
0

10K+

broadiq/mongodb repository overview

mongodb

A Docker Image for MongoDB (v 3.6) which makes it easy to create an Admin, a Database and a Database User when the container is first launched.

Customization

There are a number of environment variables which you can specify to customize the username and passwords of your users.

  • With Dockerfile

    // Auth Configuration.
    // These environment variables can also be specified through command line or docker-compose configuration
    # ENV AUTH yes
    
    # ENV MONGODB_ADMIN_USER root
    # ENV MONGODB_ADMIN_PASS password
    
    # ENV MONGODB_APPLICATION_DATABASE your_db
    # ENV MONGODB_APPLICATION_USER user
    # ENV MONGODB_APPLICATION_PASS password
    
  • With command line

    docker run -it \
      -e AUTH=yes \
      -e MONGODB_ADMIN_USER=admin \
      -e MONGODB_ADMIN_PASS=adminpass \
      -e MONGODB_APPLICATION_DATABASE=mytestdatabase \
      -e MONGODB_APPLICATION_USER=testuser \
      -e MONGODB_APPLICATION_PASS=testpass \
      -p 27017:27017 broadiq/mongodb:latest
    

Tag summary

Content type

Image

Digest

Size

125.9 MB

Last updated

about 8 years ago

docker pull broadiq/mongodb