Docker and Nodejs

1

I have an application in NodeJs and I need to configure the architecture of this application, I'm new to Docker and I need to create some containers for this application, the application should have the following configuration:

-- Container 1 - Funciona como um balanceador de carga;
-- Containers 2,3,4  - Instâncias da Aplicação;
-- Container 5 - Banco de dados (Mysql);

I would like to know if this is possible and if yes how to deploy this application later?

    
asked by anonymous 25.10.2016 / 20:29

1 answer

1

Take a look at Docker Compose !

Docker Compose is Docker's native tool for handling applications that use multiple containers.

Basically, you specify a 'docker-compose.yml' file, which identifies what services are available and how they relate.

Then just run a command docker-compose up and it will load the necessary containers.

    
01.11.2016 / 19:56