docker-compose-peer1.yaml 1.6 KB

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