MongoDB and its data container for the AffectUs Project
482
MongoDB and its data container for the AffectUs Project It is based on the official MongoDB container (https://hub.docker.com/_/mongo/)
Version History:
0.1 - It is considerd to be the vanilla containers as it is found on the official repository of MongoDB
0.2 - Uploaded on April 21st 2018
0.3 - Uploaded on May 29th 2018
0.4 - Uploaded on June 27th 2018
0.5 - Uploaded on April 10th 2019
How to install The MongoDB container should be installed before anything else of the AffectUs project. Firstly the data volume container has to be downloaded and then the MongoDB container itself, that should be connected to the volume created earlier:
docker run -v /data/db --entrypoint "bin/sh" --name mongodb-data affectus/mongodb:volume_0.2
docker run --name mongodb -d --volumes-from=mongodb-data --restart=on-failure affectus/mongodb:0.2
The MongoDB container would listen to the default port, by using the :27017 on a web browser
[Optional] Afterwards, the data volume container can be removed (not the volume itself, as it is now connected and used by the MongoDB container):
docker container rm mongodb-data
Content type
Image
Digest
Size
134.3 MB
Last updated
over 7 years ago
docker pull affectus/mongodb:0.5