Should I use separate Docker containers for my web app?

后端 未结 5 753
北恋
北恋 2021-02-05 02:18

Do I need use separate Docker container for my complex web application or I can put all required services in one container? Could anyone explain me why I should divide my app t

5条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-05 02:55

    It depends on the vision and road map you have for your application. Putting all components of an application in one tier in this case docker container is like putting all eggs in one basket.

    Whenever your application would require security, performance related issues then separating those three components in their own containers would be an ideal solution. It's needless to mention that this division of labor across containers would come at some cost and which would be related to wiring up those containers together for communication and security etc.

提交回复
热议问题