Run Simple Mean Application using Docker

Commands to run:

1. Docker should be installed on that machine

2. docker pull nikhilnidhi/nodeapp

3. docker pull mongo ( This is official docker image of mongo)

4. docker run -p 27017:27017 -d — name db mongo ( This one I created on top of one docker image which will install the required software like nodejs)

5. docker run -p 3000:3000 -p 35729:35729 — name nodeapp — link db:db nikhilnidhi/nodeapp

Written by

Devops Automation Enginneer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store