-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-etcdraft2.yaml
178 lines (164 loc) · 6.15 KB
/
docker-compose-etcdraft2.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
177
178
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
version: '2'
volumes:
orderer1.bqchain.com:
orderer2.bqchain.com:
orderer3.bqchain.com:
orderer4.bqchain.com:
orderer5.bqchain.com:
peer0.org1.bqchain.com:
peer1.org1.bqchain.com:
peer0.org2.bqchain.com:
peer1.org2.bqchain.com:
networks:
byfn:
services:
orderer1.bqchain.com:
extends:
file: base/peer-base.yaml
service: orderer-base
environment:
- ORDERER_GENERAL_LISTENPORT=7050
container_name: orderer1.bqchain.com
networks:
- byfn
volumes:
- ./channel-artifacts/genesis.block:/var/hyperledger/orderer/orderer.genesis.block
- ./crypto-config/ordererOrganizations/bqchain.com/orderers/orderer1.bqchain.com/msp:/var/hyperledger/orderer/msp
- ./crypto-config/ordererOrganizations/bqchain.com/orderers/orderer1.bqchain.com/tls/:/var/hyperledger/orderer/tls
- orderer1.bqchain.com:/var/hyperledger/production/orderer
ports:
- 7050:7050
orderer2.bqchain.com:
extends:
file: base/peer-base.yaml
service: orderer-base
environment:
- ORDERER_GENERAL_LISTENPORT=8050
container_name: orderer2.bqchain.com
networks:
- byfn
volumes:
- ./channel-artifacts/genesis.block:/var/hyperledger/orderer/orderer.genesis.block
- ./crypto-config/ordererOrganizations/bqchain.com/orderers/orderer2.bqchain.com/msp:/var/hyperledger/orderer/msp
- ./crypto-config/ordererOrganizations/bqchain.com/orderers/orderer2.bqchain.com/tls/:/var/hyperledger/orderer/tls
- orderer2.bqchain.com:/var/hyperledger/production/orderer
ports:
- 8050:8050
orderer3.bqchain.com:
extends:
file: base/peer-base.yaml
service: orderer-base
environment:
- ORDERER_GENERAL_LISTENPORT=9050
container_name: orderer3.bqchain.com
networks:
- byfn
volumes:
- ./channel-artifacts/genesis.block:/var/hyperledger/orderer/orderer.genesis.block
- ./crypto-config/ordererOrganizations/bqchain.com/orderers/orderer3.bqchain.com/msp:/var/hyperledger/orderer/msp
- ./crypto-config/ordererOrganizations/bqchain.com/orderers/orderer3.bqchain.com/tls/:/var/hyperledger/orderer/tls
- orderer3.bqchain.com:/var/hyperledger/production/orderer
ports:
- 9050:9050
orderer4.bqchain.com:
extends:
file: base/peer-base.yaml
service: orderer-base
environment:
- ORDERER_GENERAL_LISTENPORT=10050
container_name: orderer4.bqchain.com
networks:
- byfn
volumes:
- ./channel-artifacts/genesis.block:/var/hyperledger/orderer/orderer.genesis.block
- ./crypto-config/ordererOrganizations/bqchain.com/orderers/orderer4.bqchain.com/msp:/var/hyperledger/orderer/msp
- ./crypto-config/ordererOrganizations/bqchain.com/orderers/orderer4.bqchain.com/tls/:/var/hyperledger/orderer/tls
- orderer4.bqchain.com:/var/hyperledger/production/orderer
ports:
- 10050:10050
orderer5.bqchain.com:
extends:
file: base/peer-base.yaml
service: orderer-base
environment:
- ORDERER_GENERAL_LISTENPORT=11050
container_name: orderer5.bqchain.com
networks:
- byfn
volumes:
- ./channel-artifacts/genesis.block:/var/hyperledger/orderer/orderer.genesis.block
- ./crypto-config/ordererOrganizations/bqchain.com/orderers/orderer5.bqchain.com/msp:/var/hyperledger/orderer/msp
- ./crypto-config/ordererOrganizations/bqchain.com/orderers/orderer5.bqchain.com/tls/:/var/hyperledger/orderer/tls
- orderer5.bqchain.com:/var/hyperledger/production/orderer
ports:
- 11050:11050
peer0.org1.bqchain.com:
container_name: peer0.org1.bqchain.com
extends:
file: base/docker-compose-base.yaml
service: peer0.org1.bqchain.com
networks:
- byfn
peer1.org1.bqchain.com:
container_name: peer1.org1.bqchain.com
extends:
file: base/docker-compose-base.yaml
service: peer1.org1.bqchain.com
networks:
- byfn
peer0.org2.bqchain.com:
container_name: peer0.org2.bqchain.com
extends:
file: base/docker-compose-base.yaml
service: peer0.org2.bqchain.com
networks:
- byfn
peer1.org2.bqchain.com:
container_name: peer1.org2.bqchain.com
extends:
file: base/docker-compose-base.yaml
service: peer1.org2.bqchain.com
networks:
- byfn
cli:
container_name: cli
image: hyperledger/fabric-tools:$IMAGE_TAG
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.org1.bqchain.com:7051
- CORE_PEER_LOCALMSPID=Org1MSP
- CORE_PEER_TLS_ENABLED=true
- CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.bqchain.com/peers/peer0.org1.bqchain.com/tls/server.crt
- CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.bqchain.com/peers/peer0.org1.bqchain.com/tls/server.key
- CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.bqchain.com/peers/peer0.org1.bqchain.com/tls/ca.crt
- CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.bqchain.com/users/[email protected]/msp
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.bqchain.com
- orderer2.bqchain.com
- orderer3.bqchain.com
- orderer4.bqchain.com
- orderer5.bqchain.com
- peer0.org1.bqchain.com
- peer1.org1.bqchain.com
- peer0.org2.bqchain.com
- peer1.org2.bqchain.com
networks:
- byfn