Introduction
Sometimes you want to create a custom container image for your app instead of using a ready-made one. Docker Compose lets you build these images automatically from a simple file, so you can run your app with all its settings in one step.
When you have your own app code and want to package it with its environment into a container.
When you want to share your app setup with teammates without manual steps.
When you need to customize an existing image by adding files or changing settings.
When you want to run multiple containers that depend on your custom-built image.
When you want to automate building and running your app with one command.