I like the idea of modularizing an applications into containers (db, fronted, backed...) However, according to Docker docs "Compose is great for development, testing, and staging environments". The sentence tells nothing about production environment. Thus, I am confused here.
Is it better to use Dockerfile
to build production image from scratch and install all LAMP stack (etc.) there?
Or is it better to build production environment with docker-compose.yml
? Is there any reason (overhead, linking etc.) that Docker doesn't explicitly say that Compose is great for production?