2
0

docker-compose-peer2.yaml 1.8 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. couchdb2:
  9. container_name: couchdb2
  10. image: hyperledger/fabric-couchdb:x86_64-1.0.5
  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/couchdb2:/opt/couchdb/data
  15. ports:
  16. - 5984:5984
  17. peer2:
  18. container_name: peer2
  19. extends:
  20. file: peer-base/peer-base.yaml
  21. service: peer-base
  22. environment:
  23. - CORE_PEER_ID=peer2
  24. - CORE_PEER_ADDRESS=peer2:7051
  25. - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer2:7051
  26. - CORE_PEER_GOSSIP_BOOTSTRAP=peer0:7051
  27. - CORE_PEER_LOCALMSPID=Org1MSP
  28. - CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/msp/sampleconfig/tls_config/peer2Signer-peer2-peerOrg0-tls.crt
  29. - CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/msp/sampleconfig/tls_config/peer2Signer-peer2-peerOrg0-tls.key
  30. - CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/tls/peerOrg0.pem
  31. - CORE_PEER_TLS_SERVERHOSTOVERRIDE=peer2
  32. - CORE_LEDGER_STATE_STATEDATABASE=CouchDB
  33. - CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb2:5984
  34. extra_hosts:
  35. - "orderer.example.com:10.16.80.209"
  36. - "peer0:106.14.183.136"
  37. - "peer1:139.196.88.181"
  38. volumes:
  39. - /var/run/:/host/var/run/
  40. - ./channel/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/:/etc/hyperledger/msp/peer
  41. ports:
  42. - 7051:7051
  43. - 7053:7053
  44. depends_on:
  45. #- orderer0
  46. #- peer0
  47. #- peer1
  48. - couchdb2