I have been constantly discussing how to think and use Docker containers.
From the literature and examples, it seems that the container should really provide a service or part of the stack. For example, a container can run MySQL, or Apache, or redis, or something else. I can understand why it is good and clean, and it makes sense.
In our scenario, we want to host several completely separate web applications (e-commerce stores, Wordpress sites, static websites, node.js applications) on the same server, and we want to use Docker. Therefore, it is more reasonable for me that each container is completely self-container, and the entire stack itself, for example. each of my possibly several running Wordpress containers will have its own LAMP installation.
Applying a model with one container and one service to this scenario is very difficult - each application will depend on other containers in the system, on which other things depend. And what if you need several versions of a particular service.
While this seems like a way, it seems like it can be very inefficient? I am not an expert on how LXC works, but despite the fact that everything is containerized, in fact, all working apache2 and mysqlds work on the system with all the associated overheads - will there be performance problems?
Does anyone have any thoughts?
source share