docker-compose-peer3.yaml 1.7 KB

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