Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@eosio-toppings/docker-mongodb

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eosio-toppings/docker-mongodb

A Docker container that runs a MongoDB service.

  • 0.3.2-alpha.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

docker-mongodb NPM Version

docker-mongodb is responsible for creating a Docker container that runs a MongoDB service. This directory also contains the data written to the MongoDB from the nodeos container courtesy of the MongoDB plugin upon startup of the nodeos instance.

Manual Usage

Firstly, be sure that this working directory has a data directory. If not, you can create one yourself by doing mkdir data. While there are shell scripts available for your convenience, you can also manually start the MongoDB service by running the following Docker command:

docker run -d -p 27788:27788 --name eosio_mongodb -v $(pwd)/data:/data/db mongo

This creates a Docker container called eosio_mongodb which should be started first before starting the Docker container running nodeos.

If you wish to re-initialize your MongoDB service, then you will have to remove and remake the data directory, and then remove and run the MongoDB container once more. You can run everything in one line by entering the following command:

rm -rf data/ && mkdir data && docker rm -fv eosio_mongodb && docker run -d -p 27788:27788 --name eosio_mongodb -v $(pwd)/data:/data/db mongo

FAQs

Package last updated on 27 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc