Just a dockerized node app using mongodb as a linked container
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
node_modules/mongodb
.DS_Store
.gitignore
Dockerfile
LICENSE
README.md
app.js
docker-compose.yml
package.json

README.md

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