Running multiple containers.

420    Asked by JoanneGlover in Devops , Asked on Nov 7, 2019
Answered by Joanne Glover

 Using docker compose multiple containers can be deployed, these can be done via changing the value of “build” resource within yaml file.

app:

    build: ./server 1

hostname: app1

         app2:

   build: ./server2

   host name: app 2

via the above yaml file, app will be deployed on server 1 and app 2 will be deployed on server 2.



Your Answer

Interviews

Parent Categories