156 lines
7.0 KiB
YAML
156 lines
7.0 KiB
YAML
|
version: '2'
|
||
|
|
||
|
services:
|
||
|
|
||
|
orderer.example.com: # There can be multiple orderers
|
||
|
image: hyperledger/fabric-orderer
|
||
|
container_name: orderer.example.com
|
||
|
hostname: orderer.example.com
|
||
|
environment:
|
||
|
- ORDERER_GENERAL_LOGLEVEL=INFO
|
||
|
- ORDERER_GENERAL_LISTENADDRESS=0.0.0.0
|
||
|
- ORDERER_GENERAL_GENESISMETHOD=file
|
||
|
- ORDERER_GENERAL_GENESISFILE=/var/hyperledger/orderer/orderer.genesis.block #Need to be confirm orderer.block
|
||
|
- ORDERER_GENERAL_LOCALMSPID=OrdererMSP
|
||
|
- ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/orderer/msp
|
||
|
- ORDERER_GENERAL_LEDGERTYPE=ram
|
||
|
- ORDERER_GENERAL_BATCHTIMEOUT=10s
|
||
|
- ORDERER_GENERAL_MAXMESSAGECOUNT=10
|
||
|
- ORDERER_GENERAL_MAXWINDOWSIZE=1000
|
||
|
- ORDERER_GENERAL_LISTENPORT=7050
|
||
|
- ORDERER_RAMLEDGER_HISTORY_SIZE=100
|
||
|
- ORDERER_GENERAL_TLS_ENABLED=false # to enable TLS, make this true
|
||
|
- ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key
|
||
|
- ORDERER_GENERAL_TLS_CERTIFICATE=/var/hyperledger/orderer/tls/server.crt
|
||
|
- ORDERER_GENERAL_TLS_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt]
|
||
|
ports:
|
||
|
- "7050:7050"
|
||
|
volumes:
|
||
|
- ./e2e_cli/channel-artifacts/orderer.genesis.block:/var/hyperledger/orderer/orderer.genesis.block
|
||
|
- ./e2e_cli/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/msp:/var/hyperledger/orderer/msp
|
||
|
- ./e2e_cli/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tls/:/var/hyperledger/orderer/tls
|
||
|
command: orderer
|
||
|
|
||
|
peer0.org1.example.com:
|
||
|
extends:
|
||
|
file: peer.yml
|
||
|
service: peer
|
||
|
container_name: peer0.org1.example.com
|
||
|
hostname: peer0.org1.example.com
|
||
|
environment:
|
||
|
- CORE_PEER_ID=peer0.org1.example.com
|
||
|
- CORE_PEER_ADDRESS=peer0.org1.example.com:7051
|
||
|
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org1.example.com:7051
|
||
|
- CORE_PEER_GOSSIP_ORGLEADER=true
|
||
|
- CORE_PEER_LOCALMSPID=Org1MSP
|
||
|
- CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt
|
||
|
- CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key
|
||
|
- CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt
|
||
|
ports:
|
||
|
- 7051:7051
|
||
|
- 7053:7053
|
||
|
volumes:
|
||
|
- ./e2e_cli/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp:/etc/hyperledger/fabric/msp
|
||
|
- ./e2e_cli/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls:/etc/hyperledger/fabric/tls
|
||
|
command: peer node start --peer-defaultchain=false
|
||
|
|
||
|
peer1.org1.example.com:
|
||
|
extends:
|
||
|
file: peer.yml
|
||
|
service: peer
|
||
|
container_name: peer1.org1.example.com
|
||
|
hostname: peer1.org1.example.com
|
||
|
environment:
|
||
|
- CORE_PEER_ID=peer1.org1.example.com
|
||
|
- CORE_PEER_ADDRESS=peer1.org1.example.com:7051
|
||
|
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer1.org1.example.com:7051
|
||
|
- CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org1.example.com:7051
|
||
|
- CORE_PEER_LOCALMSPID=Org1MSP
|
||
|
- CORE_PEER_GOSSIP_ORGLEADER=true
|
||
|
# - CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer.example.com:7050
|
||
|
- CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt
|
||
|
- CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key
|
||
|
- CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt
|
||
|
ports:
|
||
|
- 8051:7051
|
||
|
- 8053:7053
|
||
|
volumes:
|
||
|
- ./e2e_cli/crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/msp:/etc/hyperledger/fabric/msp
|
||
|
- ./e2e_cli/crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/tls:/etc/hyperledger/fabric/tls
|
||
|
command: peer node start --peer-defaultchain=false
|
||
|
|
||
|
peer0.org2.example.com:
|
||
|
extends:
|
||
|
file: peer.yml
|
||
|
service: peer
|
||
|
container_name: peer0.org2.example.com
|
||
|
hostname: peer0.org2.example.com
|
||
|
environment:
|
||
|
- CORE_PEER_ID=peer0.org2.example.com
|
||
|
- CORE_PEER_ADDRESS=peer0.org2.example.com:7051
|
||
|
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org2.example.com:7051
|
||
|
- CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org2.example.com:7051
|
||
|
- CORE_PEER_LOCALMSPID=Org2MSP
|
||
|
- CORE_PEER_GOSSIP_ORGLEADER=true
|
||
|
# - CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer.example.com:7050
|
||
|
- CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt
|
||
|
- CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key
|
||
|
- CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt
|
||
|
ports:
|
||
|
- 9051:7051
|
||
|
- 9053:7053
|
||
|
volumes:
|
||
|
- ./e2e_cli/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp:/etc/hyperledger/fabric/msp
|
||
|
- ./e2e_cli/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls:/etc/hyperledger/fabric/tls
|
||
|
command: peer node start --peer-defaultchain=false
|
||
|
|
||
|
peer1.org2.example.com:
|
||
|
extends:
|
||
|
file: peer.yml
|
||
|
service: peer
|
||
|
container_name: peer1.org2.example.com
|
||
|
hostname: peer1.org2.example.com
|
||
|
environment:
|
||
|
- CORE_PEER_ID=peer1.org2.example.com
|
||
|
- CORE_PEER_ADDRESS=peer1.org2.example.com:7051
|
||
|
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer1.org2.example.com:7051
|
||
|
- CORE_PEER_GOSSIP_BOOTSTRAP=peer1.org2.example.com:7051
|
||
|
- CORE_PEER_LOCALMSPID=Org2MSP
|
||
|
- CORE_PEER_GOSSIP_ORGLEADER=true
|
||
|
# - CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer.example.com:7050
|
||
|
- CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt
|
||
|
- CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key
|
||
|
- CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt
|
||
|
ports:
|
||
|
- 10051:7051
|
||
|
- 10053:7053
|
||
|
volumes:
|
||
|
- ./e2e_cli/crypto-config/peerOrganizations/org2.example.com/peers/peer1.org2.example.com/msp:/etc/hyperledger/fabric/msp
|
||
|
- ./e2e_cli/crypto-config/peerOrganizations/org2.example.com/peers/peer1.org2.example.com/tls:/etc/hyperledger/fabric/tls
|
||
|
command: peer node start --peer-defaultchain=false
|
||
|
|
||
|
peer0.org3.example.com:
|
||
|
extends:
|
||
|
file: peer.yml
|
||
|
service: peer
|
||
|
container_name: peer0.org3.example.com
|
||
|
hostname: peer0.org3.example.com
|
||
|
environment:
|
||
|
- CORE_PEER_ID=peer0.org3.example.com
|
||
|
- CORE_PEER_ADDRESS=peer0.org3.example.com:7051
|
||
|
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org3.example.com:7051
|
||
|
- CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org3.example.com:7051
|
||
|
- CORE_PEER_LOCALMSPID=Org3MSP
|
||
|
- CORE_PEER_GOSSIP_ORGLEADER=true
|
||
|
# - CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer.example.com:7050
|
||
|
- CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt
|
||
|
- CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key
|
||
|
- CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt
|
||
|
ports:
|
||
|
- 11051:7051
|
||
|
- 11053:7053
|
||
|
volumes:
|
||
|
- ./e2e_cli/crypto-config/peerOrganizations/org3.example.com/peers/peer0.org3.example.com/msp:/etc/hyperledger/fabric/msp
|
||
|
- ./e2e_cli/crypto-config/peerOrganizations/org3.example.com/peers/peer0.org3.example.com/tls:/etc/hyperledger/fabric/tls
|
||
|
command: peer node start --peer-defaultchain=false
|