How exactly does docker-compose work? The documentations only mention running multiple services in parallel, without mentioning how. I understand that the images are built and run, but how are they running in parallel?
Does it resemble Supervisor, which runs each of its services in a different OS process? Are all services being wrapped in one container?
How is it handled behind the scenes?
Running docker-compose up --verbose only reveals the following, which I am not sure what it means:
compose.parallel.feed_queue: Starting producer thread for <Service: web>
docker-compose creates the docker containers for each service. It is similar to manually creating the containers using docker run commands for each service mentioned in the docker-compose.yml file.
It also does some extra stuff like creating a network and joining all the containers to the network, optionally building the image from a dockerfile etc.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With