USDocker script for MongoDB
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Useful script for 'mongodb' service

This Useful Script creates a mongodb server based on a Docker Image. You don't have know docker to use this solution.


npm install -g @usdocker/usdocker # Install it first
npm install -g @usdocker/mongodb
usdocker -r    # Update USDocker database

Start the mongodb service

usdocker mongodb up

Stop the mongodb service

usdocker mongodb down

Check the mongodb status

usdocker mongodb status

Connect to the MongoDB client

usdocker mongodb client -- [args]

Customize your service

You can setup the variables by using:

usdocker mongodb --set variable=value

Default values

  • image: "mongo:3",
  • folder: "$HOME/.usdocker/data/mongodb",
  • port: 27017