-
Notifications
You must be signed in to change notification settings - Fork 4
/
dc-base.yml
122 lines (113 loc) · 4.78 KB
/
dc-base.yml
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
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
version: "2"
services:
orderer0:
image: hyperledger/fabric-orderer${ORDERER0_VERSION_EXTENSION}
extends:
file: dc-orderer-base.yml
service: orderer
environment:
- ORDERER_GENERAL_LOCALMSPDIR=${ORDERER0_ORDERER_GENERAL_LOCALMSPDIR}
- ORDERER_GENERAL_LOCALMSPID=${ORDERER0_ORDERER_GENERAL_LOCALMSPID}
- ORDERER_GENERAL_TLS_PRIVATEKEY=${ORDERER0_ORDERER_GENERAL_TLS_PRIVATEKEY}
- ORDERER_GENERAL_TLS_CERTIFICATE=${ORDERER0_ORDERER_GENERAL_TLS_CERTIFICATE}
- ORDERER_GENERAL_TLS_ROOTCAS=${ORDERER0_ORDERER_GENERAL_TLS_ROOTCAS}
- ORDERER_GENERAL_CLUSTER_CLIENTPRIVATEKEY=${ORDERER0_ORDERER_GENERAL_CLUSTER_CLIENTPRIVATEKEY}
- ORDERER_GENERAL_CLUSTER_CLIENTCERTIFICATE=${ORDERER0_ORDERER_GENERAL_CLUSTER_CLIENTCERTIFICATE}
- ORDERER_FILELEDGER_LOCATION=${ORDERER0_ORDERER_FILELEDGER_LOCATION}
peer0:
image: hyperledger/fabric-peer${PEER0_VERSION_EXTENSION}
extends:
file: dc-peer-base.yml
service: peer
environment:
- CORE_PEER_ID=vp0
- CORE_PEER_GOSSIP_BOOTSTRAP=peer1:7051
- CORE_PEER_GOSSIP_ENDPOINT=peer0:7051
- CORE_PEER_PROFILE_ENABLED=true
- CORE_PEER_MSPCONFIGPATH=${PEER0_CORE_PEER_MSPCONFIGPATH}
- CORE_PEER_LOCALMSPID=${PEER0_CORE_PEER_LOCALMSPID}
- CORE_PEER_TLS_CERT_FILE=${PEER0_CORE_PEER_TLS_CERT_FILE}
- CORE_PEER_TLS_KEY_FILE=${PEER0_CORE_PEER_TLS_KEY_FILE}
- CORE_PEER_TLS_ROOTCERT_FILE=${PEER0_CORE_PEER_TLS_ROOTCERT_FILE}
- CORE_PEER_TLS_SERVERHOSTOVERRIDE=${PEER0_CORE_PEER_TLS_SERVERHOSTOVERRIDE}
- CORE_PEER_FILESYSTEMPATH=${PEER0_CORE_PEER_FILESYSTEMPATH}
depends_on:
- orderer0
#ports:
#- 7050:6060
peer1:
image: hyperledger/fabric-peer${PEER1_VERSION_EXTENSION}
extends:
file: dc-peer-base.yml
service: peer
environment:
- CORE_PEER_ID=vp1
- CORE_PEER_GOSSIP_BOOTSTRAP=peer0:7051
- CORE_PEER_GOSSIP_ENDPOINT=peer1:7051
- CORE_PEER_MSPCONFIGPATH=${PEER1_CORE_PEER_MSPCONFIGPATH}
- CORE_PEER_LOCALMSPID=${PEER1_CORE_PEER_LOCALMSPID}
- CORE_PEER_TLS_CERT_FILE=${PEER1_CORE_PEER_TLS_CERT_FILE}
- CORE_PEER_TLS_KEY_FILE=${PEER1_CORE_PEER_TLS_KEY_FILE}
- CORE_PEER_TLS_ROOTCERT_FILE=${PEER1_CORE_PEER_TLS_ROOTCERT_FILE}
- CORE_PEER_TLS_SERVERHOSTOVERRIDE=${PEER1_CORE_PEER_TLS_SERVERHOSTOVERRIDE}
- CORE_PEER_FILESYSTEMPATH=${PEER1_CORE_PEER_FILESYSTEMPATH}
depends_on:
- orderer0
peer2:
image: hyperledger/fabric-peer${PEER2_VERSION_EXTENSION}
extends:
file: dc-peer-base.yml
service: peer
environment:
- CORE_PEER_ID=vp2
- CORE_PEER_GOSSIP_BOOTSTRAP=peer3:7051
- CORE_PEER_GOSSIP_ENDPOINT=peer2:7051
- CORE_PEER_MSPCONFIGPATH=${PEER2_CORE_PEER_MSPCONFIGPATH}
- CORE_PEER_LOCALMSPID=${PEER2_CORE_PEER_LOCALMSPID}
- CORE_PEER_TLS_CERT_FILE=${PEER2_CORE_PEER_TLS_CERT_FILE}
- CORE_PEER_TLS_KEY_FILE=${PEER2_CORE_PEER_TLS_KEY_FILE}
- CORE_PEER_TLS_ROOTCERT_FILE=${PEER2_CORE_PEER_TLS_ROOTCERT_FILE}
- CORE_PEER_TLS_SERVERHOSTOVERRIDE=${PEER2_CORE_PEER_TLS_SERVERHOSTOVERRIDE}
- CORE_PEER_FILESYSTEMPATH=${PEER2_CORE_PEER_FILESYSTEMPATH}
depends_on:
- orderer0
peer3:
image: hyperledger/fabric-peer${PEER3_VERSION_EXTENSION}
extends:
file: dc-peer-base.yml
service: peer
environment:
- CORE_PEER_ID=vp3
- CORE_PEER_GOSSIP_BOOTSTRAP=peer2:7051
- CORE_PEER_GOSSIP_ENDPOINT=peer3:7051
- CORE_PEER_MSPCONFIGPATH=${PEER3_CORE_PEER_MSPCONFIGPATH}
- CORE_PEER_LOCALMSPID=${PEER3_CORE_PEER_LOCALMSPID}
- CORE_PEER_TLS_CERT_FILE=${PEER3_CORE_PEER_TLS_CERT_FILE}
- CORE_PEER_TLS_KEY_FILE=${PEER3_CORE_PEER_TLS_KEY_FILE}
- CORE_PEER_TLS_ROOTCERT_FILE=${PEER3_CORE_PEER_TLS_ROOTCERT_FILE}
- CORE_PEER_TLS_SERVERHOSTOVERRIDE=${PEER3_CORE_PEER_TLS_SERVERHOSTOVERRIDE}
- CORE_PEER_FILESYSTEMPATH=${PEER3_CORE_PEER_FILESYSTEMPATH}
depends_on:
- orderer0
peer4:
image: hyperledger/fabric-peer${PEER4_VERSION_EXTENSION}
extends:
file: dc-peer-base.yml
service: peer
environment:
- CORE_PEER_ID=vp4
# - CORE_PEER_GOSSIP_BOOTSTRAP=peer2:7051
- CORE_PEER_GOSSIP_ENDPOINT=peer4:7051
- CORE_PEER_MSPCONFIGPATH=${PEER4_CORE_PEER_MSPCONFIGPATH}
- CORE_PEER_LOCALMSPID=${PEER4_CORE_PEER_LOCALMSPID}
- CORE_PEER_TLS_CERT_FILE=${PEER4_CORE_PEER_TLS_CERT_FILE}
- CORE_PEER_TLS_KEY_FILE=${PEER4_CORE_PEER_TLS_KEY_FILE}
- CORE_PEER_TLS_ROOTCERT_FILE=${PEER4_CORE_PEER_TLS_ROOTCERT_FILE}
- CORE_PEER_TLS_SERVERHOSTOVERRIDE=${PEER4_CORE_PEER_TLS_SERVERHOSTOVERRIDE}
- CORE_PEER_FILESYSTEMPATH=${PEER4_CORE_PEER_FILESYSTEMPATH}
depends_on:
- orderer0