Docker best practises for multiple websites on one server

Not sure if this is the best category, but what do you think is the best practise for running multiple website on the same machine, would you have separate containers set for each website/domain? Or have all the sites in the one container set?

Would this boil down to a question of resource performance vs security?

Website 1, Website 2, Website 3:

  • nginx
  • phpfpm
  • mysql

or

Website 1:

  • nginx
  • phpfpm
  • mysql

Website 2:

  • nginx
  • phpfpm
  • mysql

Website 3:

  • nginx
  • phpfpm
  • mysql

Cheers,
Yohohoho

Hi,

Did you receive any answers, maybe from other forums?
I’m in the same situation, so pls let me know what you came up with.

Thanks!

forget about containers. thats an implementation detail…

why would you design it one way or another using a single apache?

once u have that you can implement that with docker containers…

I guess you’re right, thanks!