- Notifications
You must be signed in to change notification settings - Fork11
Sample Node.js project showing how to scale horizontally with Docker
License
Maximization/scaling-nodejs-with-docker
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This project shows how to scale a Node.js application with Docker Compose and use multiple CPU cores. It's similar to cluster mode in PM2, but with a few fundemantal differences. Read more in the accompanying article —From PM2 to Docker: Cluster Mode.
Clone this repository
git clone https://github.com/Maximization/scaling-nodejs-with-docker.git && cd scaling-nodejs-with-docker
Start the application stack scaled to four app instances
docker-compose up -d --scale app=4
Visit
http://localhost
in your browserHit refresh and you will see sequential responses from each application instance
About
Sample Node.js project showing how to scale horizontally with Docker
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.