docker-compose-orderer0.yaml 1.2 KB

1234567891011121314151617181920212223242526272829
  1. version: '2'
  2. services:
  3. orderer0:
  4. container_name: orderer0
  5. image: hyperledger/fabric-orderer
  6. environment:
  7. - GRPC_TRACE=all
  8. - GRPC_VERBOSITY=debug
  9. - ORDERER_GENERAL_LOGLEVEL=debug
  10. - ORDERER_GENERAL_LISTENADDRESS=0.0.0.0
  11. - ORDERER_GENERAL_GENESISMETHOD=file
  12. - ORDERER_GENERAL_GENESISFILE=/etc/hyperledger/configtx/twoorgs.orderer.block
  13. - ORDERER_GENERAL_LOCALMSPID=OrdererMSP
  14. - ORDERER_GENERAL_LOCALMSPDIR=/etc/hyperledger/msp/orderer
  15. - ORDERER_GENERAL_TLS_ENABLED=true
  16. - ORDERER_GENERAL_TLS_PRIVATEKEY=/etc/hyperledger/tls/orderer/key.pem
  17. - ORDERER_GENERAL_TLS_CERTIFICATE=/etc/hyperledger/tls/orderer/cert.pem
  18. - ORDERER_GENERAL_TLS_ROOTCAS=[/etc/hyperledger/tls/orderer/ca-cert.pem, /etc/hyperledger/tls/peers/peer0/ca-cert.pem, /etc/hyperledger/tls/peers/peer2/ca-cert.pem]
  19. working_dir: /opt/gopath/src/github.com/hyperledger/fabric/orderer
  20. command: orderer
  21. ports:
  22. - 7050:7050
  23. volumes:
  24. - ./channel:/etc/hyperledger/configtx
  25. - ./channel/crypto-config/ordererOrganizations/ordererOrg1/orderers/ordererOrg1orderer1/:/etc/hyperledger/msp/orderer
  26. - ./tls/orderer:/etc/hyperledger/tls/orderer
  27. - ./tls/peers:/etc/hyperledger/tls/peers