Introduction
When you want to run multiple containers together that work as parts of one app, you define services. Services let you describe each container's settings in one file so you can start them all easily.
When you want to run a web app and a database together on your computer.
When you need to start multiple containers with one command instead of many commands.
When you want to share network settings between containers automatically.
When you want to set environment variables or volumes for containers in one place.
When you want to stop or restart all parts of your app together.