Skip to content
This repository was archived by the owner on Oct 24, 2024. It is now read-only.

Latest commit

 

History

History
17 lines (15 loc) · 536 Bytes

File metadata and controls

17 lines (15 loc) · 536 Bytes

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