docker-compose-orderer0.yaml 1.5 KB

12345678910111213141516171819202122232425262728
  1. version: '2'
  2. services:
  3. orderer.example.com:
  4. container_name: orderer.example.com
  5. image: hyperledger/fabric-orderer:x86_64-1.0.5
  6. environment:
  7. - ORDERER_GENERAL_LOGLEVEL=debug
  8. - ORDERER_GENERAL_LISTENADDRESS=0.0.0.0
  9. - ORDERER_GENERAL_GENESISMETHOD=file
  10. - ORDERER_GENERAL_GENESISFILE=/etc/hyperledger/configtx/twoorgs.genesis.block
  11. - ORDERER_GENERAL_LOCALMSPID=OrdererMSP
  12. - ORDERER_GENERAL_LOCALMSPDIR=/etc/hyperledger/msp/orderer
  13. - ORDERER_GENERAL_TLS_ENABLED=true
  14. - ORDERER_GENERAL_TLS_PRIVATEKEY=/etc/hyperledger/msp/orderer/keystore/e8a4fdaacf1ef1d925686f19f56eb558b6c71f0116d85916299fc1368de2d58a_sk
  15. - ORDERER_GENERAL_TLS_CERTIFICATE=/etc/hyperledger/msp/orderer/signcerts/orderer.example.com-cert.pem
  16. - ORDERER_GENERAL_TLS_ROOTCAS=[/etc/hyperledger/msp/orderer/cacerts/example.com-cert.pem, /etc/hyperledger/msp/peerOrg1/cacerts/org1.example.com-cert.pem, /etc/hyperledger/msp/peerOrg2/cacerts/org2.example.com-cert.pem]
  17. working_dir: /opt/gopath/src/github.com/hyperledger/fabric/orderer
  18. command: orderer
  19. ports:
  20. - 7050:7050
  21. volumes:
  22. - ./channel:/etc/hyperledger/configtx
  23. - ./channel/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/:/etc/hyperledger/msp/orderer
  24. - ./channel/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/:/etc/hyperledger/msp/peerOrg1
  25. - ./channel/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/:/etc/hyperledger/msp/peerOrg2