# This is the default base file to config env and command # Notice that chaincode is executed inside docker in default net mode # https://github.com/yeasy/docker-compose-files # Depends on the hyperledger/fabric-peer image. version: '2' services: peer: image: yeasy/hyperledger-fabric environment: #- CORE_PEER_ID=peer0 - CORE_PEER_ADDRESSAUTODETECT=true - CORE_LOGGING_LEVEL=DEBUG #- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=hyperledger_fabric # uncomment this to use specific network #- CORE_PEER_NETWORKID=dev - CORE_NEXT=true - CORE_PEER_ENDORSER_ENABLED=true - CORE_PEER_COMMITTER_ENABLED=true - CORE_PEER_PROFILE_ENABLED=false - CORE_PEER_GOSSIP_ORGLEADER=false # this node is the group leader, default to true - CORE_PEER_GOSSIP_USELEADERELECTION=false # automatically run leader election, default to false - CORE_PEER_GOSSIP_IGNORESECURITY=true # The following setting skips the gossip handshake since we are # are not doing mutual TLS - CORE_PEER_GOSSIP_SKIPHANDSHAKE=true #- CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer:7050 expose: - "7050" # Rest - "7051" # Grpc - "7052" # Peer CLI - "7053" # Peer Event - "7054" # eCAP - "7055" # eCAA - "7056" # tCAP - "7057" # eCAA - "7058" # tlsCAP - "7059" # tlsCAA volumes: # docker.sock is mapped as the default CORE_VM_ENDPOINT - /var/run/docker.sock:/var/run/docker.sock #volumes: # - /var/run/:/host/var/run/ command: peer node start