/node-mongo-sample

Just a dockerized node app using mongodb as a linked container

Primary LanguageJavaScriptMIT LicenseMIT

node-mongo-sample

Just a dockerized node app using mongodb as another linked container

usage

first build your container

docker build -t you/node-mongo-sample .

then, download mongodb and use the name "mongo" in it to make things (even more) easier

docker run mongo --name mongo

call this app's container linking the "mongo" container's ip to the name "mongo" on your app's network mapping

docker run -d -p 3000:<your_open_port> --name node-mongo-sample --link mongo:mongo you/node-mongo-sample