An example nodejs app dockerized for local development.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
controllers
models
.dockerignore
.gitignore
Dockerfile
README.md
docker-compose.yml
index.js
package.json
yarn.lock

README.md

Dockerize NodeJS example app

A simple example NodeJS + Mongodb to illustrate how to dockerize a NodeJS for local development.

Original tutorial - https://medium.com/@sunnykay/docker-development-workflow-node-express-mongo-4bb3b1f7eb1e

Getting Started

To start local development, simply start up the images with docker compose.

docker compose up

Building Docker

NodeJS

Building the NodeJS container

docker build -t node-test:0.1 .

Running Docker

NodeJS

Running the NodeJS container

docker run -ti node-test:0.1