cannin / ihop-reach

A web application to access biological data extracted from biomedical literature.
https://reach.nrnb-docker.ucsd.edu
GNU Lesser General Public License v3.0
4 stars 4 forks source link

Create and Configure MongoDB Instance with Docker #8

Closed cannin closed 4 years ago

cannin commented 5 years ago

This is related to #5 but different. We will run MongoDB on a server using Docker.

https://hub.docker.com/_/mongo

The command should look something like this to start things up:

docker run -d -v /var/lib/mongo:/data/db -v /home/user/mongo.conf:/etc/mongo.conf -p port:port image_name

The command is from: https://stackoverflow.com/questions/37063662/docker-mongodb-config-file

But try it out locally. Make sure the data and the configuration file live outside of the Docker container. Make the necessary conf file; do not commit this file to GitHub.

Write a Bash script show the commands necessary to start the server, and I will run them.

RohitChattopadhyay commented 5 years ago

The GraphQL image and MongoDB image are merged into a single image as they are directly related to each other. Image in Docker Hub rchattopadhyay/reach-api Synced branch for auto-build RohitChattopadhyay/docker-api

RohitChattopadhyay commented 5 years ago

MongDB Indexes can be found here.