Home

Awesome

Docker + Node.js boilerplate

Clone

git clone http://github.com/pakastin/docker-boilerplate

Run dev environment

npm install
npm run dev
  1. Mounts following files/folders for rapid updates:

(node_modules are in /app/node_modules)

  1. Starts watching following files:
  1. Will quit on cmd+c

Start production version

npm start

Start production version without node.js

docker-compose up -d

Scale containers

npm run scale cats=5 dogs=5

Scale containers without node.js

docker-compose scale cats=1 dogs=2 index=3 proxy=4

Scale dev containers

npm run scale-dev cats=5 dogs=5

Stop containers

npm run stop

Stop dev containers

npm run stop-dev