-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathnode3.yaml
More file actions
168 lines (158 loc) · 6.77 KB
/
node3.yaml
File metadata and controls
168 lines (158 loc) · 6.77 KB
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
version: '2'
volumes:
orderer2.example.com:
peer0.org2.example.com:
networks:
fabric:
services:
ca.org2.example.com:
image: hyperledger/fabric-ca
container_name: ca.org2.example.com
environment:
- FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
- FABRIC_CA_SERVER_CA_NAME=ca.org2.example.com
- FABRIC_CA_SERVER_CA_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.org2.example.com-cert.pem
- FABRIC_CA_SERVER_CA_KEYFILE=/etc/hyperledger/fabric-ca-server-config/1b1b01803074ce499bcd4f72a97680fcd444ef80a6997ad0ecbf82ab296d7d49_sk
ports:
- "7054:7054"
command: sh -c 'fabric-ca-server start -b admin:adminpw'
volumes:
- ./crypto-config/peerOrganizations/org2.example.com/ca/:/etc/hyperledger/fabric-ca-server-config
networks:
- fabric
zookeeper2:
extends:
file: nodebase.yaml
service: zookeeper
container_name: zookeeper2
environment:
- ZOO_MY_ID=3
- ZOO_SERVERS=server.1=zookeeper0:2888:3888 server.2=zookeeper1:2888:3888 server.3=zookeeper2:2888:3888
extra_hosts:
- "zookeeper1:${NODE2}"
- "zookeeper0:${NODE1}"
networks:
- fabric
kafka2:
extends:
file: nodebase.yaml
service: kafka
container_name: kafka2
environment:
- KAFKA_BROKER_ID=2
- KAFKA_ZOOKEEPER_CONNECT=zookeeper0:2181,zookeeper1:2181,zookeeper2:2181
- KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://kafka2:9092
- KAFKA_MESSAGE_MAX_BYTES=1000012 B
- KAFKA_REPLICA_FETCH_MAX_BYTES=1048576 B
- KAFKA_REPLICA_FETCH_RESPONSE_MAX_BYTES=10485760 B
extra_hosts:
- "zookeeper1:${NODE2}"
- "zookeeper0:${NODE1}"
- "kafka1:${NODE2}"
- "kafka0:${NODE1}"
- "kafka3:${NODE4}"
- "orderer1.example.com:${NODE2}"
- "orderer0.example.com:${NODE1}"
depends_on:
- zookeeper2
networks:
- fabric
orderer2.example.com:
extends:
file: nodebase.yaml
service: orderer
container_name: orderer2.example.com
environment:
- ORDERER_HOST=orderer2.example.com
- CONFIGTX_ORDERER_ORDERERTYPE=kafka
- CONFIGTX_ORDERER_KAFKA_BROKERS=[kafka0:9092,kafka1:9092,kafka2:9092,kafka3:9092]
- ORDERER_KAFKA_RETRY_SHORTINTERVAL=1s
- ORDERER_KAFKA_RETRY_SHORTTOTAL=30s
- ORDERER_KAFKA_VERBOSE=true
- ORDERER_GENERAL_GENESISPROFILE=SampleInsecureKafka
- ORDERER_ABSOLUTEMAXBYTES=10 MB
- ORDERER_PREFERREDMAXBYTES=512 KB
extra_hosts:
- "orderer1.example.com:${NODE2}"
- "orderer0.example.com:${NODE1}"
- "kafka1:${NODE2}"
- "kafka0:${NODE1}"
- "kafka3:${NODE4}"
- "peer0.org1.example.com:${NODE1}"
- "peer1.org1.example.com:${NODE2}"
- "peer1.org2.example.com:${NODE4}"
depends_on:
- zookeeper2
- kafka2
volumes:
- ./crypto-config/ordererOrganizations/example.com/orderers/orderer2.example.com/msp:/var/hyperledger/msp
- ./crypto-config/ordererOrganizations/example.com/orderers/orderer2.example.com/tls:/var/hyperledger/tls
- ./channel-artifacts/:/var/hyperledger/configs
networks:
- fabric
ports:
- 7050:7050
peer0.org2.example.com:
container_name: peer0.org2.example.com
extends:
file: nodebase.yaml
service: peer
environment:
- CORE_PEER_ID=peer0.org2.example.com
- CORE_PEER_ADDRESS=peer0.org2.example.com:7051
- CORE_PEER_GOSSIP_BOOTSTRAP=peer1.org2.example.com:7051
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org2.example.com:7051
- CORE_PEER_LOCALMSPID=Org2MSP
extra_hosts:
- "orderer1.example.com:${NODE2}"
- "orderer0.example.com:${NODE1}"
- "peer1.org1.example.com:${NODE2}"
- "peer0.org1.example.com:${NODE1}"
- "peer1.org2.example.com:${NODE4}"
volumes:
- /var/run/:/host/var/run/
- ./crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp:/etc/hyperledger/fabric/msp
- ./crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls:/etc/hyperledger/fabric/tls
- peer0.org2.example.com:/var/hyperledger/production
ports:
- 7051:7051
- 7053:7053
networks:
- fabric
cli:
container_name: cli
image: hyperledger/fabric-tools
tty: true
stdin_open: true
environment:
- GOPATH=/opt/gopath
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
#- FABRIC_LOGGING_SPEC=DEBUG
- FABRIC_LOGGING_SPEC=INFO
- CORE_PEER_ID=cli
- CORE_PEER_ADDRESS=peer0.org2.example.com:7051
- CORE_PEER_LOCALMSPID=Org2MSP
- CORE_PEER_TLS_ENABLED=false
- CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/server.crt
- CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/server.key
- CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt
- CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp
extra_hosts:
- "orderer1.example.com:${NODE2}"
- "orderer0.example.com:${NODE1}"
- "peer1.org1.example.com:${NODE2}"
- "peer0.org1.example.com:${NODE1}"
- "peer1.org2.example.com:${NODE4}"
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer
command: /bin/bash
volumes:
- /var/run/:/host/var/run/
- ./../chaincode/:/opt/gopath/src/github.com/chaincode
- ./crypto-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/
- ./scripts:/opt/gopath/src/github.com/hyperledger/fabric/peer/scripts/
- ./channel-artifacts:/opt/gopath/src/github.com/hyperledger/fabric/peer/channel-artifacts
depends_on:
- orderer2.example.com
- peer0.org2.example.com
networks:
- fabric