github.com/leonlxy/hyperledger@v1.0.0-alpha.0.20170427033203-34922035d248/examples/e2e_cli/peer-base/peer-base.yaml (about)

     1  version: '2'
     2  services:
     3    peer-base:
     4      image: hyperledger/fabric-peer
     5      environment:
     6        #- CORE_PEER_ADDRESSAUTODETECT=true
     7        - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
     8        # the following setting starts chaincode containers on the same
     9        # bridge network as the peers
    10        # https://docs.docker.com/compose/networking/
    11        - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=e2ecli_default
    12        #- CORE_LOGGING_LEVEL=ERROR
    13        - CORE_LOGGING_LEVEL=DEBUG
    14        - CORE_PEER_TLS_ENABLED=true
    15        - CORE_NEXT=true
    16        - CORE_PEER_ENDORSER_ENABLED=true
    17        - CORE_PEER_GOSSIP_USELEADERELECTION=true
    18        - CORE_PEER_GOSSIP_ORGLEADER=false
    19        # The following setting skips the gossip handshake since we are
    20        # are not doing mutual TLS
    21        - CORE_PEER_GOSSIP_SKIPHANDSHAKE=true
    22        - CORE_PEER_PROFILE_ENABLED=true
    23      working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer
    24      command: peer node start --peer-defaultchain=false