docker-compose-peer1.yaml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. version: '2'
  2. services:
  3. peer1.org1.example.com:
  4. image: hyperledger/fabric-peer:x86_64-1.0.5
  5. restart: always
  6. container_name: peer1.org1.example.com
  7. hostname: peer1.org1.example.com
  8. environment:
  9. - CORE_PEER_ID=peer1.org1.example.com
  10. - CORE_PEER_ADDRESS=peer1.org1.example.com:7051
  11. - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer1.org1.example.com:7051
  12. - CORE_PEER_CHAINCODELISTENADDRESS=peer1.org1.example.com:7052
  13. - CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org1.example.com:7051
  14. - CORE_PEER_LOCALMSPID=Org1MSP
  15. - CORE_PEER_ADDRESSAUTODETECT=false
  16. - CORE_LOGGING_LEVEL=DEBUG
  17. - CORE_LOGGING_FORMAT=%{color}[%{id:03x} %{time:01-02 15:04:05.00 MST}] [%{longpkg}] %{callpath} -> %{level:.4s}%{color:reset} %{message}
  18. - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=v105_default # uncomment this to use specific network
  19. - CORE_PEER_GOSSIP_USELEADERELECTION=true
  20. - CORE_PEER_GOSSIP_ORGLEADER=false # this node is the group leader, default to false
  21. - CORE_PEER_PROFILE_ENABLED=false
  22. - CORE_PEER_TLS_ENABLED=true
  23. - CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt
  24. - CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key
  25. - CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt
  26. - CORE_CHIANCODE_LOGGING_LEVEL=DEBUG
  27. - CORE_CHIANCODE_LOGGING_FORMAT=%{color}[%{id:03x} %{time:01-02 15:04:05.00 MST}] [%{longpkg}] %{callpath} -> %{level:.4s}%{color:reset} %{message}
  28. expose:
  29. - "7050" # Rest
  30. - "7051" # Grpc
  31. - "7052" # Peer CLI
  32. - "7053" # Peer Event
  33. - "7054" # eCAP
  34. - "7055" # eCAA
  35. - "7056" # tCAP
  36. - "7057" # eCAA
  37. - "7058" # tlsCAP
  38. - "7059" # tlsCAA
  39. volumes:
  40. - /var/run/docker.sock:/var/run/docker.sock
  41. - ./solo/crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/msp:/etc/hyperledger/fabric/msp
  42. - ./solo/crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/tls:/etc/hyperledger/fabric/tls
  43. ports:
  44. - 7051:7051
  45. - 7052:7052
  46. - 7053:7053
  47. extra_hosts:
  48. - "orderer.example.com:106.14.183.136"
  49. - "peer0.org1.example.com:139.196.88.181"
  50. couchdb:
  51. container_name: couchdb
  52. image: hyperledger/fabric-couchdb:x86_64-1.0.5
  53. ports:
  54. - 5984:5984
  55. environment:
  56. DB_URL: http://localhost:5984/member_db