docker-compose-orderer0.yaml 1.1 KB

1234567891011121314151617181920212223242526
  1. version: '2'
  2. services:
  3. orderer0:
  4. container_name: orderer0
  5. image: hyperledger/fabric-orderer
  6. environment:
  7. - ORDERER_GENERAL_LOGLEVEL=debug
  8. - ORDERER_GENERAL_LISTENADDRESS=0.0.0.0
  9. - ORDERER_GENERAL_GENESISMETHOD=file
  10. - ORDERER_GENERAL_GENESISFILE=/var/hyperledger/orderer/orderer.block
  11. - ORDERER_GENERAL_LOCALMSPID=OrdererMSP
  12. - ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/orderer/orderer.ordererOrg1
  13. # enabled TLS
  14. - ORDERER_GENERAL_TLS_ENABLED=true
  15. - ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/orderer.ordererOrg1/keystore/03ffdebe8574e21b4a6e5ed25493200db423d4e91477eccaa25268e2315fee33_sk
  16. - ORDERER_GENERAL_TLS_CERTIFICATE=/var/hyperledger/orderer/orderer.ordererOrg1/signcerts/orderer.ordererOrg1-cert.pem
  17. - ORDERER_GENERAL_TLS_ROOTCAS=[/var/hyperledger/orderer/orderer.ordererOrg1/cacerts/ordererOrg1-cert.pem]
  18. working_dir: /opt/gopath/src/github.com/hyperledger/fabric
  19. command: orderer
  20. volumes:
  21. - ./crypto-config/ordererOrganizations/ordererOrg1/orderers/:/var/hyperledger/orderer
  22. ports:
  23. - 7050:7050