docker-compose-peer0.yaml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. version: '2'
  2. services:
  3. ## To enable CouchDB as state database, uncomment the following sections of this file:
  4. ## 1) couchdb containers
  5. ## 2) peer environment variables CORE_LEDGER_STATE_STATEDATABASE and
  6. ## CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS
  7. ## 3) couch container names in "depends_on" section
  8. couchdb0:
  9. container_name: couchdb0
  10. image: hyperledger/fabric-couchdb
  11. # Uncomment the port mapping if you want to expose the CouchDB service,
  12. # for example to utilize Fauxton User Interface in dev environments.
  13. ports:
  14. - "5984:5984"
  15. peer0:
  16. container_name: peer0
  17. extends:
  18. file: peer-base/peer-base.yaml
  19. service: peer-base
  20. environment:
  21. - CORE_PEER_ID=peer0
  22. - CORE_PEER_ADDRESS=peer0:7051
  23. - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0:7051
  24. - CORE_PEER_LOCALMSPID=Org0MSP
  25. - CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/msp/sampleconfig/signcerts/peer0Signer.pem
  26. - CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/msp/sampleconfig/keystore/peer0Signer.pem
  27. - CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/msp/sampleconfig/cacerts/peerOrg0.pem
  28. # - CORE_PEER_TLS_SERVERHOSTOVERRIDE=peer0
  29. - CORE_LEDGER_STATE_STATEDATABASE=CouchDB
  30. - CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb0:5984
  31. extra_hosts:
  32. - "orderer0:10.16.80.209"
  33. volumes:
  34. - /var/run/:/host/var/run/
  35. - ./crypto/peer/peer0/localMspConfig:/etc/hyperledger/fabric/msp/sampleconfig
  36. ports:
  37. - 7051:7051
  38. - 7053:7053
  39. depends_on:
  40. - couchdb0