Docker Community Forums

Share and learn in the Docker community.

Docker best practises for multiple websites on one server

docker
build

(Yohox3) #1

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


(Magonybertalanwh) #2

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!


(Sam) #3

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…


(Magonybertalanwh) #4

I guess you’re right, thanks!