mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-18 16:05:10 +00:00
Augment the fabric-samples first-network sample to include an option to choose etcd/raft as consensus-type. Extend the -o flag so that it allows users to choose between the solo, kafka, or etcdraft consensus-type for the ordering service. Use three orderer nodes. Change-Id: Ibc4c3564220466aef0a87baee4a2d594e5554a62 Signed-off-by: Yoav Tock <tock@il.ibm.com>
45 lines
1.4 KiB
YAML
45 lines
1.4 KiB
YAML
# Copyright IBM Corp. All Rights Reserved.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
version: '2'
|
|
|
|
volumes:
|
|
orderer2.example.com:
|
|
orderer3.example.com:
|
|
|
|
networks:
|
|
byfn:
|
|
|
|
services:
|
|
|
|
orderer2.example.com:
|
|
extends:
|
|
file: base/peer-base.yaml
|
|
service: orderer-base
|
|
container_name: orderer2.example.com
|
|
networks:
|
|
- byfn
|
|
volumes:
|
|
- ./channel-artifacts/genesis.block:/var/hyperledger/orderer/orderer.genesis.block
|
|
- ./crypto-config/ordererOrganizations/example.com/orderers/orderer2.example.com/msp:/var/hyperledger/orderer/msp
|
|
- ./crypto-config/ordererOrganizations/example.com/orderers/orderer2.example.com/tls/:/var/hyperledger/orderer/tls
|
|
- orderer2.example.com:/var/hyperledger/production/orderer
|
|
ports:
|
|
- 8050:7050
|
|
|
|
orderer3.example.com:
|
|
extends:
|
|
file: base/peer-base.yaml
|
|
service: orderer-base
|
|
container_name: orderer3.example.com
|
|
networks:
|
|
- byfn
|
|
volumes:
|
|
- ./channel-artifacts/genesis.block:/var/hyperledger/orderer/orderer.genesis.block
|
|
- ./crypto-config/ordererOrganizations/example.com/orderers/orderer3.example.com/msp:/var/hyperledger/orderer/msp
|
|
- ./crypto-config/ordererOrganizations/example.com/orderers/orderer3.example.com/tls/:/var/hyperledger/orderer/tls
|
|
- orderer3.example.com:/var/hyperledger/production/orderer
|
|
ports:
|
|
- 9050:7050
|