A couple of months ago I did a post on docker and django. Being a Node.js and rails developer primarily, I thought it would be a great idea to create one for Node.js too. The idea is still the same, to create a production ready, standard Node.js/Express.js app using docker-compose.
It uses the following stack:
- Node.js and Express.js
- MongoDB database
- nginx frontend server
- Kue worker
I created a sample project if you want the full example.
docker compose is not deemed production ready. There are some limitations, mainly related to scalability. But I think it is fine for small applications. It is obviously much better to understand how docker compose works. more info on docker’s website.
The big news is tutum has been acquired by Docker. Tutum is a cloud service to manage and deploy Docker applications. It uses a stack descriptor, which is compatible with docker-compose yaml format. So you can use my example project to deploy and mange your app with tutum.
Please go on github if you want to try that out https://github.com/damsonn/node-docker-compose