docker-compose-orderer.yaml 1.7 KB

123456789101112131415161718192021222324252627282930313233
  1. version: '2'
  2. services:
  3. orderer.example.com: # orderer node for example org
  4. image: hyperledger/fabric-orderer:x86_64-1.0.5
  5. restart: always
  6. container_name: orderer.example.com
  7. hostname: orderer.example.com
  8. environment:
  9. - ORDERER_GENERAL_LOGLEVEL=DEBUG # default: INFO
  10. - ORDERER_GENERAL_LOGFORMAT=%{color}[%{id:03x} %{time:01-02 15:04:05.00 MST}] [%{longpkg}] %{callpath} -> %{level:.4s}%{color:reset} %{message}
  11. - ORDERER_GENERAL_LISTENADDRESS=0.0.0.0 # default: 127.0.0.1
  12. - ORDERER_GENERAL_GENESISMETHOD=file # default: provisional
  13. - ORDERER_GENERAL_GENESISFILE=/var/hyperledger/orderer/orderer.genesis.block
  14. - ORDERER_GENERAL_LOCALMSPID=OrdererMSP # default: DEFAULT
  15. - ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/orderer/msp
  16. - ORDERER_GENERAL_LEDGERTYPE=file
  17. - ORDERER_GENERAL_BATCHTIMEOUT=1s
  18. - ORDERER_GENERAL_MAXMESSAGECOUNT=10
  19. - ORDERER_GENERAL_MAXWINDOWSIZE=1000
  20. - ORDERER_GENERAL_TLS_ENABLED=true # default: false
  21. - ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key
  22. - ORDERER_GENERAL_TLS_CERTIFICATE=/var/hyperledger/orderer/tls/server.crt
  23. - ORDERER_GENERAL_TLS_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt]
  24. working_dir: /opt/gopath/src/github.com/hyperledger/fabric/orderer
  25. ports:
  26. - "7050:7050"
  27. volumes:
  28. - ./solo/channel-artifacts/orderer.genesis.block:/var/hyperledger/orderer/orderer.genesis.block
  29. - ./solo/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/msp:/var/hyperledger/orderer/msp
  30. - ./solo/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tls/:/var/hyperledger/orderer/tls
  31. command: orderer