Repository navigation
Expand file tree
/
Copy pathnode2.yaml
More file actions
152 lines (143 loc) · 6 KB
/
Copy pathnode2.yaml
File metadata and controls
152 lines (143 loc) · 6 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
version: '2'
volumes:
orderer1.example.com:
peer1.org1.example.com:
networks:
fabric:
services:
zookeeper1:
extends:
file: nodebase.yaml
service: zookeeper
container_name: zookeeper1
environment:
- ZOO_MY_ID=2
- ZOO_SERVERS=server.1=zookeeper0:2888:3888 server.2=zookeeper1:2888:3888 server.3=zookeeper2:2888:3888
extra_hosts:
- "zookeeper0:${NODE1}"
- "zookeeper2:${NODE3}"
networks:
- fabric
kafka1:
extends:
file: nodebase.yaml
service: kafka
container_name: kafka1
environment:
- KAFKA_BROKER_ID=1
- KAFKA_ZOOKEEPER_CONNECT=zookeeper0:2181,zookeeper1:2181,zookeeper2:2181
- KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://kafka1:9092
- KAFKA_MESSAGE_MAX_BYTES=1000012 B
- KAFKA_REPLICA_FETCH_MAX_BYTES=1048576 B
- KAFKA_REPLICA_FETCH_RESPONSE_MAX_BYTES=10485760 B
extra_hosts:
- "zookeeper0:${NODE1}"
- "zookeeper2:${NODE3}"
- "kafka0:${NODE1}"
- "kafka2:${NODE3}"
- "kafka3:${NODE4}"
- "orderer0.example.com:${NODE1}"
- "orderer2.example.com:${NODE3}"
depends_on:
- zookeeper1
networks:
- fabric
orderer1.example.com:
extends:
file: nodebase.yaml
service: orderer
container_name: orderer1.example.com
environment:
- ORDERER_HOST=orderer1.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:
- "orderer0.example.com:${NODE1}"
- "orderer2.example.com:${NODE3}"
- "kafka0:${NODE1}"
- "kafka2:${NODE3}"
- "kafka3:${NODE4}"
- "peer0.org1.example.com:${NODE1}"
- "peer0.org2.example.com:${NODE3}"
- "peer1.org2.example.com:${NODE4}"
depends_on:
- zookeeper1
- kafka1
volumes:
- ./crypto-config/ordererOrganizations/example.com/orderers/orderer1.example.com/msp:/var/hyperledger/msp
- ./crypto-config/ordererOrganizations/example.com/orderers/orderer1.example.com/tls:/var/hyperledger/tls
- ./channel-artifacts/:/var/hyperledger/configs
networks:
- fabric
ports:
- 7050:7050
peer1.org1.example.com:
container_name: peer1.org1.example.com
extends:
file: nodebase.yaml
service: peer
environment:
- CORE_PEER_ID=peer1.org1.example.com
- CORE_PEER_ADDRESS=peer1.org1.example.com:7051
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer1.org1.example.com:7051
- CORE_PEER_GOSSIP_BOOTSTRAP=peer0.org1.example.com:7051
- CORE_PEER_LOCALMSPID=Org1MSP
extra_hosts:
- "orderer0.example.com:${NODE1}"
- "orderer2.example.com:${NODE3}"
- "peer0.org1.example.com:${NODE1}"
- "peer0.org2.example.com:${NODE3}"
- "peer1.org2.example.com:${NODE4}"
volumes:
- /var/run/:/host/var/run/
- ./crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/msp:/etc/hyperledger/fabric/msp
- ./crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/tls:/etc/hyperledger/fabric/tls
- peer1.org1.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=peer1.org1.example.com:7051
- CORE_PEER_LOCALMSPID=Org1MSP
- CORE_PEER_TLS_ENABLED=false
- CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/tls/server.crt
- CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/tls/server.key
- CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/tls/ca.crt
- CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp
extra_hosts:
- "orderer0.example.com:${NODE1}"
- "orderer2.example.com:${NODE3}"
- "peer0.org1.example.com:${NODE1}"
- "peer0.org2.example.com:${NODE3}"
- "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:
- orderer1.example.com
- peer1.org1.example.com
networks:
- fabric