Best practices with hosting multiple apps with Docker as a services

  deployment, docker, docker-compose

Best practices for deploying app with docker

In a stack, i have one web app, sql, and two more services components. All of them work independently but for the stack, we need to deploy everything together. This composed of four services.

Currently I have all of them into single docker-compose file. So with docker-compose up -d, it deploys everything. Now if I want to change any thing in any of the services, this requires me to build the new image and then do docker-compose down, and then docker-compose up again.

This impacts all other apps as well. Currently this is under development, so it’s not an issue. But I am concerned about how do we manage this for production use? What are the best practices? Am I doing right? Or my approach is wrong? Pls advise.

Source: StackOverflow

LEAVE A COMMENT