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
usdocker mongodb up
usdocker mongodb down
usdocker mongodb status
usdocker mongodb client -- [args]
You can setup the variables by using:
usdocker mongodb --set variable=value
Default values
- image: "mongo:3",
- folder: "$HOME/.usdocker/data/mongodb",
- port: 27017