-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
176 lines (164 loc) · 12.5 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
version: '2'
services:
orderer.trackandtrace.com:
container_name: orderer.trackandtrace.com
image: hyperledger/fabric-orderer:latest
environment:
- ORDERER_GENERAL_LOGLEVEL=debug
- ORDERER_GENERAL_LISTENADDRESS=0.0.0.0
- ORDERER_GENERAL_GENESISMETHOD=file
- ORDERER_GENERAL_GENESISFILE=/var/hyperledger/orderer/orderer.genesis.block
- ORDERER_GENERAL_LOCALMSPID=OrdererMSP
- ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/orderer/msp
- ORDERER_GENERAL_TLS_ENABLED=true
- ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key
- ORDERER_GENERAL_TLS_CERTIFICATE=/var/hyperledger/orderer/tls/server.crt
- ORDERER_GENERAL_TLS_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt]
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/orderer
command: orderer
volumes:
- ./system-genesis-block/genesis.block:/var/hyperledger/orderer/orderer.genesis.block
- ./crypto-config/ordererOrganizations/trackandtrace.com/orderers/orderer.trackandtrace.com/msp:/var/hyperledger/orderer/msp
- ./crypto-config/ordererOrganizations/trackandtrace.com/orderers/orderer.trackandtrace.com/tls:/var/hyperledger/orderer/tls
ports:
- 7050:7050
# Definieren Sie ähnliche Dienste für die Peers jeder Organisation. Sie können diesen Block kopieren und für jeden Peer anpassen.
peer0.consignor.trackandtrace.com:
container_name: peer0.consignor.trackandtrace.com
image: hyperledger/fabric-peer:latest
environment:
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
- CORE_PEER_ID=peer0.consignor.trackandtrace.com
- CORE_PEER_ADDRESS=peer0.consignor.trackandtrace.com:7051
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.consignor.trackandtrace.com:7051
- CORE_PEER_LOCALMSPID=ConsignorMSP
- CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/fabric/crypto-config/peerOrganizations/consignor.trackandtrace.com/users/[email protected]/msp
- CORE_PEER_CHAINCODE_EXECUTETIMEOUT=300s
volumes:
- /var/run/:/host/var/run/
- ./crypto-config/peerOrganizations/consignor.trackandtrace.com/peers/peer0.consignor.trackandtrace.com/msp:/etc/hyperledger/fabric/msp
- ./crypto-config/peerOrganizations/consignor.trackandtrace.com/peers/peer0.consignor.trackandtrace.com/tls/:/etc/hyperledger/fabric/tls
- ./channel-artifacts:/etc/hyperledger/fabric/channel-artifacts
- ./crypto-config/ordererOrganizations/trackandtrace.com/orderers/orderer.trackandtrace.com/msp/tlscacerts:/etc/hyperledger/fabric/orderer
- ./crypto-config/peerOrganizations/consignor.trackandtrace.com/users/[email protected]/msp:/etc/hyperledger/fabric/crypto-config/peerOrganizations/consignor.trackandtrace.com/users/[email protected]/msp
- ./consignor:/var/hyperledger/fabric/config
- ./crypto-config/peerOrganizations/consignor.trackandtrace.com/peers/peer0.consignor.trackandtrace.com/tls:/var/hyperledger/fabric/config/tls
- ./crypto-config/peerOrganizations/consignor.trackandtrace.com/users/[email protected]/tls:/var/hyperledger/fabric/config/users
- ./chaincode-java:/etc/hyperledger/fabric/chaincode
ports:
- 7051:7051
peer0.consignee.trackandtrace.com:
container_name: peer0.consignee.trackandtrace.com
image: hyperledger/fabric-peer:latest
environment:
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
- CORE_PEER_ID=peer0.consignee.trackandtrace.com
- CORE_PEER_ADDRESS=peer0.consignee.trackandtrace.com:7057
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.consignee.trackandtrace.com:7057
- CORE_PEER_LOCALMSPID=ConsigneeMSP
- CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/fabric/crypto-config/peerOrganizations/consignee.trackandtrace.com/users/[email protected]/msp
volumes:
- /var/run/:/host/var/run/
- ./crypto-config/peerOrganizations/consignee.trackandtrace.com/peers/peer0.consignee.trackandtrace.com/msp:/etc/hyperledger/fabric/msp
- ./crypto-config/peerOrganizations/consignee.trackandtrace.com/peers/peer0.consignee.trackandtrace.com/tls:/etc/hyperledger/fabric/tls
- ./channel-artifacts:/etc/hyperledger/fabric/channel-artifacts
- ./crypto-config/ordererOrganizations/trackandtrace.com/orderers/orderer.trackandtrace.com/msp/tlscacerts:/etc/hyperledger/fabric/orderer
- ./crypto-config/peerOrganizations/consignee.trackandtrace.com/users/[email protected]/msp:/etc/hyperledger/fabric/crypto-config/peerOrganizations/consignee.trackandtrace.com/users/[email protected]/msp
- ./consignee:/var/hyperledger/fabric/config
- ./crypto-config/peerOrganizations/consignee.trackandtrace.com/peers/peer0.consignee.trackandtrace.com/tls:/var/hyperledger/fabric/config/tls
- ./crypto-config/peerOrganizations/consignee.trackandtrace.com/users/[email protected]/tls:/var/hyperledger/fabric/config/users
- ./chaincode-java:/etc/hyperledger/fabric/chaincode
ports:
- 7057:7057
peer0.precarriageshipper.trackandtrace.com:
container_name: peer0.precarriageshipper.trackandtrace.com
image: hyperledger/fabric-peer:latest
environment:
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
- CORE_PEER_ID=peer0.precarriageshipper.trackandtrace.com
- CORE_PEER_ADDRESS=peer0.precarriageshipper.trackandtrace.com:7053
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.precarriageshipper.trackandtrace.com:7053
- CORE_PEER_LOCALMSPID=PreCarriageShipperMSP
- CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/fabric/crypto-config/peerOrganizations/precarriageshipper.trackandtrace.com/users/[email protected]/msp
volumes:
- /var/run/:/host/var/run/
- ./crypto-config/peerOrganizations/precarriageshipper.trackandtrace.com/peers/peer0.precarriageshipper.trackandtrace.com/msp:/etc/hyperledger/fabric/msp
- ./crypto-config/peerOrganizations/precarriageshipper.trackandtrace.com/peers/peer0.precarriageshipper.trackandtrace.com/tls:/etc/hyperledger/fabric/tls
- ./channel-artifacts:/etc/hyperledger/fabric/channel-artifacts
- ./crypto-config/ordererOrganizations/trackandtrace.com/orderers/orderer.trackandtrace.com/msp/tlscacerts:/etc/hyperledger/fabric/orderer
- ./crypto-config/peerOrganizations/precarriageshipper.trackandtrace.com/users/[email protected]/msp:/etc/hyperledger/fabric/crypto-config/peerOrganizations/precarriageshipper.trackandtrace.com/users/[email protected]/msp
- ./precarriage:/var/hyperledger/fabric/config
- ./crypto-config/peerOrganizations/precarriageshipper.trackandtrace.com/peers/peer0.precarriageshipper.trackandtrace.com/tls:/var/hyperledger/fabric/config/tls
- ./crypto-config/peerOrganizations/precarriageshipper.trackandtrace.com/users/[email protected]/tls:/var/hyperledger/fabric/config/users
- ./chaincode-java:/etc/hyperledger/fabric/chaincode
ports:
- 7053:7053
peer0.maincarrier.trackandtrace.com:
container_name: peer0.maincarrier.trackandtrace.com
image: hyperledger/fabric-peer:latest
environment:
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
- CORE_PEER_ID=peer0.maincarrier.trackandtrace.com
- CORE_PEER_ADDRESS=peer0.maincarrier.trackandtrace.com:7054
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.maincarrier.trackandtrace.com:7054
- CORE_PEER_LOCALMSPID=MainCarrierMSP
- CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/fabric/crypto-config/peerOrganizations/maincarrier.trackandtrace.com/users/[email protected]/msp
volumes:
- /var/run/:/host/var/run/
- ./crypto-config/peerOrganizations/maincarrier.trackandtrace.com/peers/peer0.maincarrier.trackandtrace.com/msp:/etc/hyperledger/fabric/msp
- ./crypto-config/peerOrganizations/maincarrier.trackandtrace.com/peers/peer0.maincarrier.trackandtrace.com/tls:/etc/hyperledger/fabric/tls
- ./channel-artifacts:/etc/hyperledger/fabric/channel-artifacts
- ./crypto-config/ordererOrganizations/trackandtrace.com/orderers/orderer.trackandtrace.com/msp/tlscacerts:/etc/hyperledger/fabric/orderer
- ./crypto-config/peerOrganizations/maincarrier.trackandtrace.com/users/[email protected]/msp:/etc/hyperledger/fabric/crypto-config/peerOrganizations/maincarrier.trackandtrace.com/users/[email protected]/msp
- ./maincarrier:/var/hyperledger/fabric/config
- ./crypto-config/peerOrganizations/maincarrier.trackandtrace.com/peers/peer0.maincarrier.trackandtrace.com/tls:/var/hyperledger/fabric/config/tls
- ./crypto-config/peerOrganizations/maincarrier.trackandtrace.com/users/[email protected]/tls:/var/hyperledger/fabric/config/users
- ./chaincode-java:/etc/hyperledger/fabric/chaincode
ports:
- 7054:7054
peer0.oncarriageshipper.trackandtrace.com:
container_name: peer0.oncarriageshipper.trackandtrace.com
image: hyperledger/fabric-peer:latest
environment:
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
- CORE_PEER_ID=peer0.oncarriageshipper.trackandtrace.com
- CORE_PEER_ADDRESS=peer0.oncarriageshipper.trackandtrace.com:7055
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.oncarriageshipper.trackandtrace.com:7055
- CORE_PEER_LOCALMSPID=OnCarriageShipperMSP
- CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/fabric/crypto-config/peerOrganizations/oncarriageshipper.trackandtrace.com/users/[email protected]/msp
volumes:
- /var/run/:/host/var/run/
- ./crypto-config/peerOrganizations/oncarriageshipper.trackandtrace.com/peers/peer0.oncarriageshipper.trackandtrace.com/msp:/etc/hyperledger/fabric/msp
- ./crypto-config/peerOrganizations/oncarriageshipper.trackandtrace.com/peers/peer0.oncarriageshipper.trackandtrace.com/tls:/etc/hyperledger/fabric/tls
- ./channel-artifacts:/etc/hyperledger/fabric/channel-artifacts
- ./crypto-config/ordererOrganizations/trackandtrace.com/orderers/orderer.trackandtrace.com/msp/tlscacerts:/etc/hyperledger/fabric/orderer
- ./crypto-config/peerOrganizations/oncarriageshipper.trackandtrace.com/users/[email protected]/msp:/etc/hyperledger/fabric/crypto-config/peerOrganizations/oncarriageshipper.trackandtrace.com/users/[email protected]/msp
- ./oncarriage:/var/hyperledger/fabric/config
- ./crypto-config/peerOrganizations/oncarriageshipper.trackandtrace.com/peers/peer0.oncarriageshipper.trackandtrace.com/tls/:/var/hyperledger/fabric/config/tls
- ./crypto-config/peerOrganizations/oncarriageshipper.trackandtrace.com/users/[email protected]/tls:/var/hyperledger/fabric/config/users
- ./chaincode-java:/etc/hyperledger/fabric/chaincode
ports:
- 7055:7055
peer0.customs.trackandtrace.com:
container_name: peer0.customs.trackandtrace.com
image: hyperledger/fabric-peer:latest
environment:
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
- CORE_PEER_ID=peer0.customs.trackandtrace.com
- CORE_PEER_ADDRESS=peer0.customs.trackandtrace.com:7056
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.customs.trackandtrace.com:7056
- CORE_PEER_LOCALMSPID=CustomsMSP
- CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/fabric/crypto-config/peerOrganizations/customs.trackandtrace.com/users/[email protected]/msp
volumes:
- /var/run/:/host/var/run/
- ./crypto-config/peerOrganizations/customs.trackandtrace.com/peers/peer0.customs.trackandtrace.com/msp:/etc/hyperledger/fabric/msp
- ./crypto-config/peerOrganizations/customs.trackandtrace.com/peers/peer0.customs.trackandtrace.com/tls:/etc/hyperledger/fabric/tls
- ./channel-artifacts:/etc/hyperledger/fabric/channel-artifacts
- ./crypto-config/ordererOrganizations/trackandtrace.com/orderers/orderer.trackandtrace.com/msp/tlscacerts:/etc/hyperledger/fabric/orderer
- ./crypto-config/peerOrganizations/customs.trackandtrace.com/users/[email protected]/msp:/etc/hyperledger/fabric/crypto-config/peerOrganizations/customs.trackandtrace.com/users/[email protected]/msp
- ./customs:/var/hyperledger/fabric/config
- ./crypto-config/peerOrganizations/customs.trackandtrace.com/peers/peer0.customs.trackandtrace.com/tls:/var/hyperledger/fabric/config/tls
- ./crypto-config/peerOrganizations/customs.trackandtrace.com/users/[email protected]/tls:/var/hyperledger/fabric/config/users
- ./chaincode-java:/etc/hyperledger/fabric/chaincode
ports:
- 7056:7056