docker-compose allows you to define a set of containers in a single file. They will be in their “namespace” and can be linked and tied together.
We can use docker both for static and dynamic websites. We have a wide choice of images - and we can even create our own.
What I’ll be describing now is another kind of setup, based on two containers, and it will help you to understand some of the features of Docker.
Docker has been a fundamental part of my setup for more than three years now. Day after day I tried to move as many services as possible to Docker and this was a very good move.
Sometimes containers log a lot of things, and the logfile can become huge. This happens because containers aren't supposed to run for a long time but to be created/disposed regularly. Here's how