O'Reilly logo

Hands-On Microservices with Node.js by Diogo Resende

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Replicating our microservice

Picking up from the previous chapter, we ended with a Docker Compose configuration that starts our two containers, one with our microservice and the other with the database server that stores our data:

You may have noticed when deploying with Docker Compose that our two containers have a _1 suffix on the name. This is because Docker Compose supports replicating our instance using Docker swarm.

Docker swarm is another component of the Docker engine that enables you to create a cluster of hosts to run your microservice instances while orchestrating all of this using a simple tool from any of the hosts in your cluster. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required