Skip to content

Instantly share code, notes, and snippets.

@susimsek
Last active November 27, 2021 11:28
Show Gist options
  • Save susimsek/8f4e0dda04a5451c72ea6bc8ed50cadf to your computer and use it in GitHub Desktop.
Save susimsek/8f4e0dda04a5451c72ea6bc8ed50cadf to your computer and use it in GitHub Desktop.
configtx
Organizations:
Name: OrdererOrg
# ID to load the MSP definition as
ID: OrdererMSP
# MSPDir is the filesystem path which contains the MSP configuration
MSPDir: ../organizations/ordererOrganizations/example.com/msp
...
OrdererEndpoints:
- orderer:7050
- &Org1
# DefaultOrg defines the organization which is used in the sampleconfig
# of the fabric.git development environment
Name: Org1MSP
# ID to load the MSP definition as
ID: Org1MSP
AnchorPeers:
- Host: peer0-org1
Port: 7051
- &Org2
# DefaultOrg defines the organization which is used in the sampleconfig
# of the fabric.git development environment
Name: Org2MSP
# ID to load the MSP definition as
ID: Org2MSP
MSPDir: ../organizations/peerOrganizations/org2.example.com/msp
AnchorPeers:
# AnchorPeers defines the location of peers which can be used
# for cross org gossip communication. Note, this value is only
# encoded in the genesis block in the Application section context
- Host: peer0-org2
Port: 9051
- &Org3
# DefaultOrg defines the organization which is used in the sampleconfig
# of the fabric.git development environment
Name: Org3MSP
# ID to load the MSP definition as
ID: Org3MSP
MSPDir: ../organizations/peerOrganizations/org3.example.com/msp
AnchorPeers:
# AnchorPeers defines the location of peers which can be used
# for cross org gossip communication. Note, this value is only
# encoded in the genesis block in the Application section context
- Host: peer0-org3
Port: 11051
...
Orderer: &OrdererDefaults
# Orderer Type: The orderer implementation to start
OrdererType: kafka
# Addresses used to be the list of orderer addresses that clients and peers
# could connect to. However, this does not allow clients to associate orderer
# addresses and orderer organizations which can be useful for things such
# as TLS validation. The preferred way to specify orderer addresses is now
# to include the OrdererEndpoints item in your org definition
Addresses:
- orderer:7050
- orderer2:7050
- orderer3:7050
- orderer4:7050
- orderer5:7050
...
Kafka:
# Brokers: A list of Kafka brokers to which the orderer connects
# NOTE: Use IP:port notation
Brokers:
- broker-0.broker:9092
- broker-1.broker:9092
...
Profiles:
TwoOrgsOrdererGenesis:
...
Organizations:
- *Org1
- *Org2
- *Org3
TwoOrgsChannel:
...
Organizations:
- *Org1
- *Org2
- *Org3
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment