Skip to content

nanobox-io/nanobox-docker-mongodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MongoDB Build Status Image

This is an MongoDB Docker image used to launch a MongoDB service on Nanobox. To use this image, add a data component to your boxfile.yml with the nanobox/mongodb image specified:

data.db:
  image: nanobox/mongodb:3.0

MongoDB Configuration Options

MongoDB components are configured in your boxfile.yml. All available configuration options are outlined below.

Quick Links

version
objcheck
log_verbosity
directoryperdb
logappend
nojournal
noscripting

Overview of MongoDB Boxfile Settings

data.db:
  image: nanobox/mongodb:3.0
  config:
    objcheck: true
    log_verbosity: 'v'
    directoryperdb: true
    logappend: true
    nojournal: false
    noscripting: false

Version

When configuring a MongoDB service in your Boxfile, you can specify the version to use. The following version(s) are available:

  • 2.6
  • 3.0
  • 3.2
  • 3.4

Note: Due to version compatibility constraints, MongoDB versions cannot be changed after the service is created. To use a different version, you'll have to create a new MongoDB service and manually migrate data.

version

# default setting
data.db:
  image: nanobox/mongodb:3.0

ObjCheck

View the MongoDB documentation for details and configuration options.

objcheck

#default setting
data.db:
  image: nanobox/mongodb
  config:
    objcheck: true

Log Verbosity

View the MongoDB documentation for details and configuration options.

log_verbosity

data.db:
  image: nanobox/mongodb
  config:
    log_verbosity: 'v'

DirectoryPerDB

View the MongoDB documentation for details and configuration options.

directoryperdb

#default setting
data.db:
  image: nanobox/mongodb
  config:
    directoryperdb: true

LogAppend

View the MongoDB documentation for details and configuration options.

logappend

#default setting
data.db:
  image: nanobox/mongodb
  config:
    logappend: true

NoJournal

View the MongoDB documentation for details and configuration options.

nojournal

#default setting
data.db:
  image: nanobox/mongodb
  config:
    nojournal: false

NoScripting

View the MongoDB documentation for details and configuration options.

noscripting

#default setting
data.db:
  image: nanobox/mongodb
  config:
    noscripting: false

Help & Support

This is a MongoDB Docker image provided by Nanobox. If you need help with this image, you can reach out to us in the #nanobox IRC channel. If you are running into an issue with the image, feel free to create a new issue on this project.

License

Mozilla Public License, version 2.0