Answer the question
In order to leave comments, you need to log in
LEMP Docker image vs. LEMP Docker compose?
Greetings!
Let's say in production you need this, quite a trivial bundle: nginx+php+redis+mysql.
The application itself will be quite simple, expected average load (100-500 uniques) during peak hours.
Initially, I thought about putting everything into one container, but for some reason, among ready-made solutions and manuals like "right now we can do everything in 5 minutes", such tasks are solved by a bunch of containers in docker-compose.
It seems to me that to solve my problem, lifting a whole bunch is a bit too much.
But maybe that's how it's supposed to be? In general, what are the pros and cons of the approaches?
Answer the question
In order to leave comments, you need to log in
If everything is in different containers, then docker will be able to restart frozen container processes (for example, nginx) and you won’t even notice.
If everything is in one container, then the docker will only monitor the first process, and there is a chance of an unpleasant situation, once the first process is running, but something else is hanging.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question