https://github.com/bretfisher/nodemongoapp
Docker Example Node + Mongo App
https://github.com/bretfisher/nodemongoapp
Last synced: 6 months ago
JSON representation
Docker Example Node + Mongo App
- Host: GitHub
- URL: https://github.com/bretfisher/nodemongoapp
- Owner: BretFisher
- Created: 2016-09-05T03:57:37.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-12-06T01:39:53.000Z (10 months ago)
- Last Synced: 2025-04-11T19:09:30.428Z (6 months ago)
- Language: JavaScript
- Size: 110 KB
- Stars: 11
- Watchers: 2
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.