I want to know the corresponding field between crypto-config.yaml、configtx.yaml and docker-compose.yaml files. In the above three files , which common fields must be the same ,please point out the same common fields,
It is very important to make the fabric network works and find out the issues.
The configtx.yaml file and the dockcer-compose.yaml file are related by the MSP identificator. In the configtx.yaml, you define for each organization by the
ID
field; In the docker-compose.yaml you define it for each container by theCORE_PEER_LOCALMSPID
field for the Peers and theORDERER_GENERAL_LOCALMSPID
field for the Orderers.On the other hand, the CN of the certificates that you use to connect among different nodes has to be related to the host of each one. So you have to define the crypto-config.yaml file according to that. In that file, you define the
domain
and thehostname
for each node. This info has to be related with the definition of each container that you do on the docker-compose.yaml file.