docker-compose-peer3.yaml 1.8 KB

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