github.com/leonlxy/hyperledger@v1.0.0-alpha.0.20170427033203-34922035d248/bddtests/docker-compose-with-orderer.yml (about) 1 version: '2' 2 networks: 3 bridge: 4 5 services: 6 orderer: 7 image: hyperledger/fabric-orderer 8 environment: 9 - ORDERER_GENERAL_LEDGERTYPE=ram 10 - ORDERER_GENERAL_BATCHTIMEOUT=10s 11 - ORDERER_GENERAL_BATCHSIZE_MAXMESSAGECOUNT=2 12 - ORDERER_GENERAL_MAXWINDOWSIZE=1000 13 - ORDERER_GENERAL_ORDERERTYPE=solo 14 - ORDERER_GENERAL_LISTENADDRESS=0.0.0.0 15 - ORDERER_GENERAL_LISTENPORT=7050 16 - ORDERER_RAMLEDGER_HISTORY_SIZE=100 17 working_dir: /opt/gopath/src/github.com/hyperledger/fabric/orderer 18 command: orderer 19 networks: 20 - bridge 21 22 23 vpserv: 24 image: hyperledger/fabric-peer 25 environment: 26 - CORE_PEER_ADDRESSAUTODETECT=true 27 - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock 28 - CORE_PEER_NETWORKID=${CORE_PEER_NETWORKID} 29 - CORE_NEXT=true 30 - CORE_PEER_ENDORSER_ENABLED=true 31 - CORE_PEER_COMMITTER_ENABLED=true 32 - CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer:7050 33 volumes: 34 - /var/run/:/host/var/run/ 35 networks: 36 - bridge 37 38 vp0: 39 extends: 40 service: vpserv 41 environment: 42 - CORE_PEER_ID=vp0 43 - CORE_PEER_PROFILE_ENABLED=true 44 - CORE_PEER_GOSSIP_ORGLEADER=true 45 ports: 46 - 7051:7051 47 - 7053:7053 48 command: peer node start 49 links: 50 - orderer 51 52 vp1: 53 extends: 54 service: vpserv 55 environment: 56 - CORE_PEER_ID=vp1 57 - CORE_PEER_PROFILE_ENABLED=true 58 - CORE_PEER_GOSSIP_BOOTSTRAP=vp0:7051 59 - CORE_PEER_GOSSIP_ORGLEADER=false 60 command: peer node start 61 links: 62 - orderer 63 64 vp2: 65 extends: 66 service: vpserv 67 environment: 68 - CORE_PEER_ID=vp2 69 - CORE_PEER_PROFILE_ENABLED=true 70 - CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer:7050 71 - CORE_PEER_GOSSIP_BOOTSTRAP=vp0:10000 72 - CORE_PEER_GOSSIP_ORGLEADER=false 73 command: peer node start 74 links: 75 - orderer 76