|
| 1 | +version: '2' |
| 2 | +networks: |
| 3 | + bridge: |
| 4 | + |
| 5 | +services: |
| 6 | + |
| 7 | + ccenv_latest: |
| 8 | + container_name: ccenv_latest |
| 9 | + build: ./ccenv |
| 10 | + image: hyperledger/fabric-ccenv:latest |
| 11 | + volumes: |
| 12 | + - ./ccenv:/opt/gopath/src/github.com/hyperledger/fabric/orderer/ccenv |
| 13 | + |
| 14 | + ccenv_snapshot: |
| 15 | + container_name: ccenv_snapshot |
| 16 | + build: ./ccenv |
| 17 | + image: hyperledger/fabric-ccenv:x86_64-0.7.0-snapshot-3ee280e |
| 18 | + volumes: |
| 19 | + - ./ccenv:/opt/gopath/src/github.com/hyperledger/fabric/orderer/ccenv |
| 20 | + |
| 21 | + ca: |
| 22 | + image: rameshthoomu/fabric-ca-x86_64:x86_64-0.7.0-snapshot-f5291e7 |
| 23 | + ports: |
| 24 | + - "7054:7054" |
| 25 | + environment: |
| 26 | + - CA_CERTIFICATE=peerOrg0_cert.pem |
| 27 | + - CA_KEY_CERTIFICATE=peerOrg0_pk.pem |
| 28 | + volumes: |
| 29 | + - ./tmp/ca:/.fabric-ca |
| 30 | + command: sh -c 'sleep 10; fabric-ca server start -ca /.fabric-ca/$$CA_CERTIFICATE -ca-key /.fabric-ca/$$CA_KEY_CERTIFICATE -config /etc/hyperledger/fabric-ca/server-config.json -address "0.0.0.0"' |
| 31 | + container_name: ca |
| 32 | + |
| 33 | + |
| 34 | + orderer: |
| 35 | + container_name: orderer |
| 36 | + image: rameshthoomu/fabric-orderer-x86_64:x86_64-0.7.0-snapshot-3ee280e |
| 37 | + environment: |
| 38 | + - ORDERER_GENERAL_LEDGERTYPE=ram |
| 39 | + - ORDERER_GENERAL_BATCHTIMEOUT=10s |
| 40 | + - ORDERER_GENERAL_BATCHSIZE_MAXMESSAGECOUNT=10 |
| 41 | + - ORDERER_GENERAL_MAXWINDOWSIZE=1000 |
| 42 | + - ORDERER_GENERAL_ORDERERTYPE=solo |
| 43 | + - ORDERER_GENERAL_LOGLEVEL=debug |
| 44 | + - ORDERER_GENERAL_LISTENADDRESS=0.0.0.0 |
| 45 | + - ORDERER_GENERAL_LISTENPORT=7050 |
| 46 | + - ORDERER_RAMLEDGER_HISTORY_SIZE=100 |
| 47 | + working_dir: /opt/gopath/src/github.com/hyperledger/fabric/orderer |
| 48 | + volumes: |
| 49 | + - ./tmp/orderer:/etc/hyperledger/fabric/orderer |
| 50 | + command: orderer |
| 51 | + ports: |
| 52 | + - 7050:7050 |
| 53 | + networks: |
| 54 | + - bridge |
| 55 | + |
| 56 | + peer0: |
| 57 | + container_name: peer0 |
| 58 | + image: rameshthoomu/fabric-peer-x86_64:x86_64-0.7.0-snapshot-3ee280e |
| 59 | + environment: |
| 60 | + - CORE_PEER_ADDRESSAUTODETECT=true |
| 61 | + - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock |
| 62 | + - CORE_LOGGING_LEVEL=DEBUG |
| 63 | + - CORE_PEER_NETWORKID=peer0 |
| 64 | + - CORE_NEXT=true |
| 65 | + - CORE_PEER_ENDORSER_ENABLED=true |
| 66 | + - CORE_PEER_ID=peer0 |
| 67 | + - CORE_PEER_PROFILE_ENABLED=true |
| 68 | + - CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer:7050 |
| 69 | + - CORE_PEER_GOSSIP_ORGLEADER=true |
| 70 | + |
| 71 | + working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer |
| 72 | + ports: |
| 73 | + - 7051:7051 |
| 74 | + - 7053:7053 |
| 75 | + links: |
| 76 | + - orderer:orderer |
| 77 | + volumes: |
| 78 | + - /var/run/:/host/var/run/ |
| 79 | + - ./tmp/peer0:/etc/hyperledger/fabric/msp/sampleconfig |
| 80 | + networks: |
| 81 | + - bridge |
| 82 | + |
| 83 | + peer1: |
| 84 | + container_name: peer1 |
| 85 | + image: rameshthoomu/fabric-peer-x86_64:x86_64-0.7.0-snapshot-3ee280e |
| 86 | + environment: |
| 87 | + - CORE_PEER_ADDRESSAUTODETECT=true |
| 88 | + - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock |
| 89 | + - CORE_LOGGING_LEVEL=DEBUG |
| 90 | + - CORE_PEER_NETWORKID=peer0 |
| 91 | + - CORE_NEXT=true |
| 92 | + - CORE_PEER_ENDORSER_ENABLED=true |
| 93 | + - CORE_PEER_ID=peer1 |
| 94 | + - CORE_PEER_PROFILE_ENABLED=true |
| 95 | + - CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer:7050 |
| 96 | + - CORE_PEER_GOSSIP_ORGLEADER=true |
| 97 | + working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer |
| 98 | + ports: |
| 99 | + - 8051:7051 |
| 100 | + command: peer node start --peer-defaultchain=false |
| 101 | + links: |
| 102 | + - orderer:orderer |
| 103 | + - peer0:peer0 |
| 104 | + volumes: |
| 105 | + - /var/run/:/host/var/run/ |
| 106 | + - ./tmp/peer1:/etc/hyperledger/fabric/msp/sampleconfig |
| 107 | + networks: |
| 108 | + - bridge |
| 109 | + |
| 110 | + peer2: |
| 111 | + container_name: peer2 |
| 112 | + image: rameshthoomu/fabric-peer-x86_64:x86_64-0.7.0-snapshot-3ee280e |
| 113 | + environment: |
| 114 | + - CORE_PEER_ADDRESSAUTODETECT=true |
| 115 | + - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock |
| 116 | + - CORE_LOGGING_LEVEL=DEBUG |
| 117 | + - CORE_PEER_NETWORKID=peer0 |
| 118 | + - CORE_NEXT=true |
| 119 | + - CORE_PEER_ENDORSER_ENABLED=true |
| 120 | + - CORE_PEER_ID=peer2 |
| 121 | + - CORE_PEER_PROFILE_ENABLED=true |
| 122 | + - CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer:7050 |
| 123 | + - CORE_PEER_GOSSIP_ORGLEADER=true |
| 124 | + working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer |
| 125 | + |
| 126 | + ports: |
| 127 | + - 9051:7051 |
| 128 | + command: peer node start --peer-defaultchain=false |
| 129 | + links: |
| 130 | + - orderer:orderer |
| 131 | + - peer0:peer0 |
| 132 | + - peer1:peer1 |
| 133 | + volumes: |
| 134 | + - /var/run/:/host/var/run/ |
| 135 | + - ./tmp/peer2:/etc/hyperledger/fabric/msp/sampleconfig |
| 136 | + networks: |
| 137 | + - bridge |
| 138 | + |
| 139 | + cli: |
| 140 | + container_name: cli |
| 141 | + image: rameshthoomu/fabric-peer-x86_64:x86_64-0.7.0-snapshot-3ee280e |
| 142 | + tty: true |
| 143 | + environment: |
| 144 | + - GOPATH=/opt/gopath |
| 145 | + - CORE_PEER_ADDRESSAUTODETECT=true |
| 146 | + - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock |
| 147 | + - CORE_LOGGING_LEVEL=DEBUG |
| 148 | + - CORE_NEXT=true |
| 149 | + - CORE_PEER_ID=cli |
| 150 | + - CORE_PEER_ENDORSER_ENABLED=true |
| 151 | + - CORE_PEER_COMMITTER_LEDGER_ORDERER=orderer:7050 |
| 152 | + - CORE_PEER_ADDRESS=peer0:7051 |
| 153 | + working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer |
| 154 | + command: sh -c './channel_test.sh; sleep 10000' |
| 155 | +# command: /bin/sh |
| 156 | + links: |
| 157 | + - orderer:orderer |
| 158 | + - peer0:peer0 |
| 159 | + - peer1:peer1 |
| 160 | + - peer2:peer2 |
| 161 | + volumes: |
| 162 | + - /var/run/:/host/var/run/ |
| 163 | + #in the "- <HOST>:/opt/gopath/src/github.com/hyperledger/fabric/examples/" mapping below, the HOST part |
| 164 | + #should be modified to the path on the host. This will work as is in the Vagrant environment |
| 165 | + - ./src/github.com/example_cc/example_cc.go:/opt/gopath/src/github.com/hyperledger/fabric/examples/example_cc.go |
| 166 | + - ./tmp/peer3/:/etc/hyperledger/fabric/msp/sampleconfig |
| 167 | + - ./channel_test.sh:/opt/gopath/src/github.com/hyperledger/fabric/peer/channel_test.sh |
| 168 | + networks: |
| 169 | + - bridge |
0 commit comments