Containers are meant to provide component isolation in a modern software stack. Put your database in one container, your web application in another, and they can all be scaled, managed, restarted, and ...
This method is so much easier.
It's also quite handy for Docker veterans ...