Hyperledger Fabric utilizes Docker compose to define fabric application services. The docker-compose-cli.yaml service section is the place for defining all peer services and related containers. Hyperledger Fabric's first-network provides a .yaml template to help you quickly start to create yaml files from scratch:
https://github.com/hyperledger/fabric-samples/tree/release-1.2/first-network.
In docker-compose-cli.yaml, we define the following information:
- networks: Definition of the blockchain network name. In our case, it is icn
- services: Definition of all peer services and related Docker containers
- cli: Definition of the Cli container that is used to replace the SDK client, ...