I manage servers where users have their own websites on it that can be accessed by FTP (like an hosting company) and instead of working on isolating LAMP stack processes, I was wondering if it was possible to implement Docker and use an images per website.
From what I understand, you can expose Docker instance via their ports, so if you run two docker instance on the same server, you'll have to expose two different ports.
But is it possible to export not ports, but server name, like :
- www.somewebsite.com : Docker instance 1
- www.otherwebsite.com : Docker instance 2
- www.etc.com : Docker instance ...
And that, in the same server.
I thought about installing only Apache on the server, that would redirect request to the dedicated Docker instance based on the server name, but then I would have to install Apache (again !) andMySQL on any Docker instances.
Is this possible and moreover, is this interesting in term of performance (or not at all)?
Thank you for your help.