HUB
Sign inSign up
nodemongoapp logo

bretfisher/nodemongoapp

By bretfisher

•Updated almost 2 years ago

Dockerized Example App: Node.js + Mongo

Image
11

2.2K

bretfisher/nodemongoapp repository overview

⁠Dockerized Example App: Node.js + Mongo

A very simple example of a Node web app that connects to a mongo db. Each in its own container. I use this to illustrate many Docker concepts and techniques:

  • Use Dockerfile to build web app locally
  • Use docker-compose.yml to start web and mongo containers and mount source dir so you can dev locally, and show now multiple containers can work inside an overlay network.
  • User docker-compose.prod.yml to run docker-compose bundle for creating dab files to deploy in docker swarm. Scale web container and see how Routing Mesh works.

⁠Potential other lessions

  • Change to use FROM node:onbuild to show how a convenion-based node/npm app can get away with a single line Dockerfile for dev.
Tag summary
Recent tags
Content type
Image
Digest
sha256:b1e807261…
Size
391.1 MB
Last updated
almost 2 years ago
docker pull bretfisher/nodemongoapp:latest