Now that you’ve got three bins in a position for use, you are going to learn to create a docker-compose.yaml report. By means of the use of Docker Compose, it is possible for you to to proportion a unmarried YAML report and any individual will be capable to run your application.
Docker-compose is a part of the Docker equipment suite and is an application that may take a YAML report to start out your entire bins with one unmarried command.
The usage of Compose is mainly a three-step procedure:
- Outline your app’s surroundings with a
Dockerfileso it may be reproduced anyplace.
- Outline the services and products that make up your app in
docker-compose.ymlso they are able to be run in combination in an remoted surroundings.
docker-compose upand Compose begins and runs your programs.
Compose works in all environments: manufacturing, staging, building, and trying out.