What are the same common fields between crypto-config.yaml、configtx.yaml and docker-compose.yaml files

168 Views Asked by At

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.

1

There are 1 best solutions below

3
On

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 the CORE_PEER_LOCALMSPID field for the Peers and the ORDERER_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 the hostname for each node. This info has to be related with the definition of each container that you do on the docker-compose.yaml file.