/docker-nodejs-example

🐳 Small example of files watched and linked docker containers

Primary LanguageShell

docker-nodejs-example

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 |
     ----------       -------------

Prerequisites

Instalation steps

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