docker-compose-peer2.yaml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. couchdb2:
  9. container_name: couchdb2
  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. peer2:
  16. container_name: peer2
  17. extends:
  18. file: peer-base/peer-base.yaml
  19. service: peer-base
  20. environment:
  21. - CORE_PEER_ID=peer2
  22. - CORE_PEER_ADDRESS=peer2:7051
  23. - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer2:7051
  24. - CORE_PEER_GOSSIP_BOOTSTRAP=peer2:7051
  25. - CORE_PEER_LOCALMSPID=Org1MSP
  26. - CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/msp/sampleconfig/signcerts/peer2Signer.pem
  27. - CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/msp/sampleconfig/keystore/peer2Signer.pem
  28. - CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/msp/sampleconfig/admincerts/peerOrg1.pem
  29. #- CORE_PEER_TLS_SERVERHOSTOVERRIDE=peer2
  30. - CORE_LEDGER_STATE_STATEDATABASE=CouchDB
  31. - CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb2:5984
  32. extra_hosts:
  33. - "orderer0:10.16.80.209"
  34. - "peer0:10.16.80.210"
  35. - "peer1:10.16.80.211"
  36. volumes:
  37. - /var/run/:/host/var/run/
  38. - ./crypto/peer/peer2/localMspConfig:/etc/hyperledger/fabric/msp/sampleconfig
  39. ports:
  40. - 7051:7051
  41. - 7053:7053
  42. depends_on:
  43. #- orderer0
  44. #- peer0
  45. #- peer1
  46. - couchdb2