巴比特论坛

发表于 2017-2-20 17:54:23 | 显示全部楼层
在0.6/pbft中新建一个5-peers.yml文件,然后执行命令:docker-compose -f 5-peers.yml up

# This compose file will start a cluster with 4 hyperledger peer nodes
#  vp0: validating node as root
#  vp1: validating node as peer
#  vp2: validating node as peer
#  vp3: validating node as peer
# https://github.com/yeasy/docker-compose-files

version: '2'

services:
  # validating node as the root
  # vp0 will also be used for client interactive operations
  # If you want to run fabric command on the host, then map 7051:7051 to host
  # port, or use like `CORE_PEER_ADDRESS=172.17.0.2:7051` to specify peer addr.
  vp0:
    extends:
      file: peer.yml
      service: vp
    hostname: vp0
    environment:
      - CORE_PEER_ID=vp0
    ports:
      - "7050:7050"
      #- "7051:7051"

  # validating node
  vp1:
    extends:
      file: peer.yml
      service: vp
    hostname: vp1
    environment:
      - CORE_PEER_ID=vp1
      - CORE_PEER_DISCOVERY_ROOTNODE=vp0:7051
    links:
      - vp0

  # validating node
  vp2:
    extends:
      file: peer.yml
      service: vp
    hostname: vp2
    environment:
      - CORE_PEER_ID=vp2
      - CORE_PEER_DISCOVERY_ROOTNODE=vp0:7051
    links:
      - vp0


  # validating node
  vp3:
    extends:
      file: peer.yml
      service: vp
    hostname: vp3
    environment:
      - CORE_PEER_ID=vp3
      - CORE_PEER_DISCOVERY_ROOTNODE=vp0:7051
    links:
      - vp0

#networks:
#  default:
#    external:
#      name: fabric_pbft

  vp4:
    extends:
      file: peer.yml
      service: vp
    hostname: vp4
    environment:
      - CORE_PEER_ID=vp4
      - CORE_PEER_DISCOVERY_ROOTNODE=vp0:7051
    links:
      - vp0


0条回复 跳转到指定楼层

高级模式
您需要登录后才可以发帖 登录 | 立即注册 用新浪微博登录

本版积分规则

搜索

0关注 0粉丝 3主题

作者的其他主题

返回顶部 返回列表
分享 发帖