Tools, FAQ, Tutorials:
BYFN docker-compose-cli.yaml Configuration File
What is the docker-compose-cli.yaml Configuration File used in BYFN (Build Your First Network)?
✍: FYIcenter.com
The docker-compose-cli.yaml Configuration File provides settings on Docker containers to run the BYFN network.
Here is the default copy of docker-compose-cli.yaml provided in BYFN:
# SPDX-License-Identifier: Apache-2.0 version: '2' volumes: orderer.example.com: peer0.org1.example.com: peer1.org1.example.com: peer0.org2.example.com: peer1.org2.example.com: networks: byfn: services: orderer.example.com: extends: file: base/docker-compose-base.yaml service: orderer.example.com container_name: orderer.example.com networks: - byfn peer0.org1.example.com: container_name: peer0.org1.example.com extends: file: base/docker-compose-base.yaml service: peer0.org1.example.com networks: - byfn peer1.org1.example.com: container_name: peer1.org1.example.com extends: file: base/docker-compose-base.yaml service: peer1.org1.example.com networks: - byfn peer0.org2.example.com: container_name: peer0.org2.example.com extends: file: base/docker-compose-base.yaml service: peer0.org2.example.com networks: - byfn peer1.org2.example.com: container_name: peer1.org2.example.com extends: file: base/docker-compose-base.yaml service: peer1.org2.example.com networks: - byfn cli: container_name: cli image: hyperledger/fabric-tools:$IMAGE_TAG tty: true stdin_open: true environment: - GOPATH=/opt/gopath - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock #- FABRIC_LOGGING_SPEC=DEBUG - FABRIC_LOGGING_SPEC=INFO - CORE_PEER_ID=cli - CORE_PEER_ADDRESS=peer0.org1.example.com:7051 - CORE_PEER_LOCALMSPID=Org1MSP - CORE_PEER_TLS_ENABLED=true - CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabri... - CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric... - CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/f... - CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabri... working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer command: /bin/bash volumes: - /var/run/:/host/var/run/ - ./../chaincode/:/opt/gopath/src/github.com/chaincode - ./crypto-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ - ./scripts:/opt/gopath/src/github.com/hyperledger/fabric/peer/scripts/ - ./channel-artifacts:/opt/gopath/src/github.com/hyperledger/fabric/peer/channel-artifacts depends_on: - orderer.example.com - peer0.org1.example.com - peer1.org1.example.com - peer0.org2.example.com - peer1.org2.example.com networks: - byfn
As you can the BYFN network uses 5 primary Docker containers acting as orderer and peer nodes. It also uses a special container "cli" as command line window to manage the network.
⇒ "docker-compose up" Command - Start the Network
⇐ "configtxgen" Command - Build *MSPanchors.tx
2020-10-20, 917🔥, 0💬
Popular Posts:
How To Read the Entire File into a Single String in PHP? If you have a file, and you want to read th...
How to read RSS validation errors at w3.org? If your RSS feed has errors, the RSS validator at w3.or...
What Is Azure API Management Service? Azure API Management as a turnkey solution for publishing APIs...
How to use the "@(...)" expression in Azure API Policy? The "@(...)" expression in Azure API Policy ...
How to use the JSON to XML Conversion Tool at freeformatter.com? If you want to try the JSON to XML ...