github.com/darrenli6/fabric-sdk-example@v0.0.0-20220109053535-94b13b56df8c/bddtests/dc-peer-base.yml (about)

     1  # Copyright IBM Corp. All Rights Reserved.
     2  #
     3  # SPDX-License-Identifier: Apache-2.0
     4  #
     5  
     6  version: '2'
     7  
     8  services:
     9  
    10    peer:
    11      image: hyperledger/fabric-peer
    12      environment:
    13        - CORE_PEER_ADDRESSAUTODETECT=true
    14        #- CORE_VM_ENDPOINT=http://172.17.0.1:2375
    15        - CORE_LOGGING_LEVEL=DEBUG
    16        - CORE_PEER_NETWORKID=${CORE_PEER_NETWORKID}
    17        - CORE_PEER_TLS_ENABLED=true
    18        # This disables mutual auth for gossip
    19        - CORE_PEER_GOSSIP_SKIPHANDSHAKE=true
    20        - CORE_PEER_GOSSIP_ORGLEADER=false
    21        - CORE_PEER_GOSSIP_USELEADERELECTION=true
    22      ports:
    23        - '7051'
    24        - '7053'
    25      volumes:
    26        - ./volumes/peer:/var/hyperledger/bddtests/volumes/peer
    27        - /var/run/docker.sock:/var/run/docker.sock
    28      # Script will wait until membersrvc is up (if it exists) before starting
    29      # $$GOPATH (double dollar) required to prevent docker-compose doing its own
    30      # substitution before the value gets to the container
    31      #command: sh -c "exec $$GOPATH/src/github.com/hyperledger/fabric/bddtests/scripts/start-peer.sh"
    32      command: peer node start
    33  
    34      # Use these options if coverage desired for peers
    35      #image: hyperledger/fabric-peer-coverage
    36      #command: ./peer.test --test.coverprofile=coverage.cov node start