matiru
Blockchain-Based Supply Chain Transparency for Agricultural Producegit clone https://github.com/maydayv7/matiru
fabric/network/docker/docker-compose-network.yaml (9325B)
1volumes:
2 orderer.example.com:
3 peer0.org1.example.com:
4 peer0.org2.example.com:
5 peer0.org3.example.com:
6 peer0.org4.example.com:
7
8networks:
9 matiru:
10 name: matiru-network
11
12services:
13 orderer.example.com:
14 container_name: orderer.example.com
15 image: hyperledger/fabric-orderer:latest
16 labels:
17 service: hyperledger-fabric
18 environment:
19 - FABRIC_LOGGING_SPEC=INFO
20 - ORDERER_GENERAL_LISTENADDRESS=0.0.0.0
21 - ORDERER_GENERAL_LISTENPORT=7050
22 - ORDERER_GENERAL_LOCALMSPID=OrdererMSP
23 - ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/orderer/msp
24 - ORDERER_GENERAL_TLS_ENABLED=true
25 - ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key
26 - ORDERER_GENERAL_TLS_CERTIFICATE=/var/hyperledger/orderer/tls/server.crt
27 - ORDERER_GENERAL_TLS_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt]
28 - ORDERER_KAFKA_TOPIC_REPLICATIONFACTOR=1
29 - ORDERER_KAFKA_VERBOSE=true
30 - ORDERER_GENERAL_CLUSTER_CLIENTCERTIFICATE=/var/hyperledger/orderer/tls/server.crt
31 - ORDERER_GENERAL_CLUSTER_CLIENTPRIVATEKEY=/var/hyperledger/orderer/tls/server.key
32 - ORDERER_GENERAL_CLUSTER_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt]
33 - ORDERER_GENERAL_BOOTSTRAPMETHOD=none
34 - ORDERER_CHANNELPARTICIPATION_ENABLED=true
35 - ORDERER_ADMIN_TLS_ENABLED=true
36 - ORDERER_ADMIN_TLS_CERTIFICATE=/var/hyperledger/orderer/tls/server.crt
37 - ORDERER_ADMIN_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key
38 - ORDERER_ADMIN_TLS_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt]
39 - ORDERER_ADMIN_TLS_CLIENTROOTCAS=[/var/hyperledger/orderer/tls/ca.crt]
40 - ORDERER_ADMIN_LISTENADDRESS=0.0.0.0:7053
41 working_dir: /opt/gopath/src/github.com/hyperledger/fabric
42 command: orderer
43 volumes:
44 - ../system-genesis-block/genesis.block:/var/hyperledger/orderer/orderer.genesis.block
45 - ../organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp:/var/hyperledger/orderer/msp
46 - ../organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/:/var/hyperledger/orderer/tls
47 - orderer.example.com:/var/hyperledger/production/orderer
48 ports:
49 - 7050:7050
50 - 7053:7053
51 networks:
52 - matiru
53
54 peer0.org1.example.com:
55 container_name: peer0.org1.example.com
56 image: hyperledger/fabric-peer:latest
57 labels:
58 service: hyperledger-fabric
59 environment:
60 - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
61 - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=matiru-network
62 - FABRIC_LOGGING_SPEC=INFO
63 - CORE_PEER_TLS_ENABLED=true
64 - CORE_PEER_PROFILE_ENABLED=true
65 - CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt
66 - CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key
67 - CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt
68 - CORE_PEER_ID=peer0.org1.example.com
69 - CORE_PEER_ADDRESS=peer0.org1.example.com:7051
70 - CORE_PEER_LISTENADDRESS=0.0.0.0:7051
71 - CORE_PEER_CHAINCODEADDRESS=peer0.org1.example.com:7052
72 - CORE_PEER_CHAINCODELISTENADDRESS=0.0.0.0:7052
73 - CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org1.example.com:7051
74 - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org1.example.com:7051
75 - CORE_PEER_LOCALMSPID=Org1MSP
76 volumes:
77 - /var/run/docker.sock:/host/var/run/docker.sock
78 - ../organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp:/etc/hyperledger/fabric/msp
79 - ../organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls:/etc/hyperledger/fabric/tls
80 - peer0.org1.example.com:/var/hyperledger/production
81 working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer
82 command: peer node start
83 ports:
84 - 7051:7051
85 networks:
86 - matiru
87
88 peer0.org2.example.com:
89 container_name: peer0.org2.example.com
90 image: hyperledger/fabric-peer:latest
91 labels:
92 service: hyperledger-fabric
93 environment:
94 - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
95 - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=matiru-network
96 - FABRIC_LOGGING_SPEC=INFO
97 - CORE_PEER_TLS_ENABLED=true
98 - CORE_PEER_PROFILE_ENABLED=true
99 - CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt
100 - CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key
101 - CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt
102 - CORE_PEER_ID=peer0.org2.example.com
103 - CORE_PEER_ADDRESS=peer0.org2.example.com:9051
104 - CORE_PEER_LISTENADDRESS=0.0.0.0:9051
105 - CORE_PEER_CHAINCODEADDRESS=peer0.org2.example.com:9052
106 - CORE_PEER_CHAINCODELISTENADDRESS=0.0.0.0:9052
107 - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org2.example.com:9051
108 - CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org2.example.com:9051
109 - CORE_PEER_LOCALMSPID=Org2MSP
110 volumes:
111 - /var/run/docker.sock:/host/var/run/docker.sock
112 - ../organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp:/etc/hyperledger/fabric/msp
113 - ../organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls:/etc/hyperledger/fabric/tls
114 - peer0.org2.example.com:/var/hyperledger/production
115 working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer
116 command: peer node start
117 ports:
118 - 9051:9051
119 networks:
120 - matiru
121
122 peer0.org3.example.com:
123 container_name: peer0.org3.example.com
124 image: hyperledger/fabric-peer:latest
125 labels:
126 service: hyperledger-fabric
127 environment:
128 - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
129 - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=matiru-network
130 - FABRIC_LOGGING_SPEC=INFO
131 - CORE_PEER_TLS_ENABLED=true
132 - CORE_PEER_PROFILE_ENABLED=true
133 - CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt
134 - CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key
135 - CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt
136 - CORE_PEER_ID=peer0.org3.example.com
137 - CORE_PEER_ADDRESS=peer0.org3.example.com:11051
138 - CORE_PEER_LISTENADDRESS=0.0.0.0:11051
139 - CORE_PEER_CHAINCODEADDRESS=peer0.org3.example.com:11052
140 - CORE_PEER_CHAINCODELISTENADDRESS=0.0.0.0:11052
141 - CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org3.example.com:11051
142 - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org3.example.com:11051
143 - CORE_PEER_LOCALMSPID=Org3MSP
144 volumes:
145 - /var/run/docker.sock:/host/var/run/docker.sock
146 - ../organizations/peerOrganizations/org3.example.com/peers/peer0.org3.example.com/msp:/etc/hyperledger/fabric/msp
147 - ../organizations/peerOrganizations/org3.example.com/peers/peer0.org3.example.com/tls:/etc/hyperledger/fabric/tls
148 - peer0.org3.example.com:/var/hyperledger/production
149 working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer
150 command: peer node start
151 ports:
152 - 11051:11051
153 networks:
154 - matiru
155
156 peer0.org4.example.com:
157 container_name: peer0.org4.example.com
158 image: hyperledger/fabric-peer:latest
159 labels:
160 service: hyperledger-fabric
161 environment:
162 - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
163 - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=matiru-network
164 - FABRIC_LOGGING_SPEC=INFO
165 - CORE_PEER_TLS_ENABLED=true
166 - CORE_PEER_PROFILE_ENABLED=true
167 - CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt
168 - CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key
169 - CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt
170 - CORE_PEER_ID=peer0.org4.example.com
171 - CORE_PEER_ADDRESS=peer0.org4.example.com:13051
172 - CORE_PEER_LISTENADDRESS=0.0.0.0:13051
173 - CORE_PEER_CHAINCODEADDRESS=peer0.org4.example.com:13052
174 - CORE_PEER_CHAINCODELISTENADDRESS=0.0.0.0:13052
175 - CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org4.example.com:13051
176 - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org4.example.com:13051
177 - CORE_PEER_LOCALMSPID=Org4MSP
178 volumes:
179 - /var/run/docker.sock:/host/var/run/docker.sock
180 - ../organizations/peerOrganizations/org4.example.com/peers/peer0.org4.example.com/msp:/etc/hyperledger/fabric/msp
181 - ../organizations/peerOrganizations/org4.example.com/peers/peer0.org4.example.com/tls:/etc/hyperledger/fabric/tls
182 - peer0.org4.example.com:/var/hyperledger/production
183 working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer
184 command: peer node start
185 ports:
186 - 13051:13051
187 networks:
188 - matiru
189
190 cli:
191 container_name: cli
192 image: hyperledger/fabric-tools:latest
193 labels:
194 service: hyperledger-fabric
195 tty: true
196 stdin_open: true
197 environment:
198 - GOPATH=/opt/gopath
199 - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
200 - FABRIC_LOGGING_SPEC=INFO
201 working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer
202 command: /usr/bin/env bash
203 volumes:
204 - /var/run/:/host/var/run/
205 - ../organizations:/opt/gopath/src/github.com/hyperledger/fabric/peer/organizations
206 - ../scripts:/opt/gopath/src/github.com/hyperledger/fabric/peer/scripts/
207 depends_on:
208 - peer0.org1.example.com
209 - peer0.org2.example.com
210 - peer0.org3.example.com
211 - peer0.org4.example.com
212 networks:
213 - matiru