Should I create a container for each site / app or can I put them all in one?

0

I'm starting to study Docker, I've been playing around on a VPS server that I have, but there are still some doubts.

I have already understood that it is a good practice to separate the database and the system itself into containers, but I must create a container for each site I want to host, or I can simply create a container with Apache and PHP and run several sites there inside, but linking to the mysql container?

I know that the doubt can be a basic, but it is that this concept was not very clear

    
asked by anonymous 14.04.2017 / 00:54

1 answer

0

If you are thinking about good practices, yes, each site in a container. This is so that you really benefit from the isolation, and thus ensure that one does not impact the other, in addition to being able to monitor and isolate the consumption of resources individually, including protecting you in the event of any downtime.

    
28.05.2017 / 11:53