Tools, FAQ, Tutorials:
docker-compose-orderer.yaml - Docker Configuration
What is the Docker Compose configuration file for an Orderer peer?
✍: FYIcenter.com
The Docker Compose configuration file, docker-compose-orderer.yaml,
provides settings on how to run the orderer peer on the Docker engine.
Here is a sample of docker-compose-orderer.yaml for a single orderer peer:
$ cd fabric-orderer
$ more docker-compose-order.yaml
# Copyright IBM Corp. All Rights Reserved.
version: '2'
volumes:
orderer.example.com:
networks:
hello:
services:
orderer.example.com:
networks:
- hello
container_name: orderer.example.com
image: hyperledger/fabric-orderer:amd64-1.4.0
environment:
- FABRIC_LOGGING_SPEC=INFO
- ORDERER_GENERAL_LISTENADDRESS=0.0.0.0
- ORDERER_GENERAL_GENESISMETHOD=file
- ORDERER_GENERAL_GENESISFILE=/var/hyperledger/orderer/orderer.genesis.block
- ORDERER_GENERAL_LOCALMSPID=OrdererMSP
- ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/orderer/msp
- ORDERER_GENERAL_TLS_ENABLED=false
working_dir: /opt/gopath/src/github.com/hyperledger/fabric
command: orderer
volumes:
- ./genesis.block:/var/hyperledger/orderer/orderer.genesis.block
- ./msp:/var/hyperledger/orderer/msp
- orderer.example.com:/var/hyperledger/production/orderer
ports:
- 7050:7050
As you can, the MSP entry and the genesis.block are mapped to docker container file system.
⇒ "docker-compose" - Deploy Orderer to Docker
⇐ Generate Genesis Block for Orderer
2019-08-23, ∼1637🔥, 0💬
Popular Posts:
How to build a PHP script to dump Azure AD 2.0 Authentication Response? If you are use the Azure-AD-...
How To Truncate an Array in PHP? If you want to remove a chunk of values from an array, you can use ...
How to create a "Sign-up or Sign-in" user flow policy in my Azure AD B2C directory? If you want to b...
How To Open Standard Output as a File Handle in PHP? If you want to open the standard output as a fi...
How To Break a File Path Name into Parts in PHP? If you have a file name, and want to get different ...