Showcase of two docker containers :
- linked containers : 1 nginx and 1 nodejs application
- file-wached : a modification on source code will trigger a restart of containers
---------- -------------
--> | nginx:80 | --> | nodejs:9000 |
---------- -------------
- OSX (/Linux)
- boot2docker installed (if OSX)
- docker-compose
- nodejs and nodemon globally installed (
npm install -g nodemon
)
1/ clone current repo :
git clone https://github.com/slyg/docker-nodejs-example
2/ install webapp's volume dependencies (mainly express 4) :
cd webapp && npm install
3/ create and run stack
cd .. && sh startup.sh