This repository has been archived by the owner on May 27, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathdocker-compose-couchdb.yaml
207 lines (196 loc) · 5.46 KB
/
docker-compose-couchdb.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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
version: "3.1"
services:
ca-datastore:
container_name: ca-datastore
image: ishangulhane/fabric-couchdb
environment:
- COUCHDB_USER=
- COUCHDB_PASSWORD=
ports:
- 5984:5984
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "10"
fitcoin-statedb:
container_name: fitcoin-statedb
image: ishangulhane/fabric-couchdb
environment:
- COUCHDB_USER=
- COUCHDB_PASSWORD=
ports:
- 8984:5984
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "10"
shop-statedb:
container_name: shop-statedb
image: ishangulhane/fabric-couchdb
environment:
- COUCHDB_USER=
- COUCHDB_PASSWORD=
ports:
- 9984:5984
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "10"
shop-ca:
container_name: shop-ca
image: shop-ca
environment:
- FABRIC_CA_HOME=/ca
command: fabric-ca-server start
ports:
- 7054:7054
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "10"
fitcoin-ca:
container_name: fitcoin-ca
image: fitcoin-ca
environment:
- FABRIC_CA_HOME=/ca
command: fabric-ca-server start
ports:
- 8054:7054
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "10"
orderer0:
container_name: orderer0
image: orderer-peer
environment:
- ORDERER_GENERAL_LOGLEVEL=debug
- ORDERER_GENERAL_LISTENADDRESS=0.0.0.0
- ORDERER_GENERAL_GENESISMETHOD=file
- ORDERER_GENERAL_GENESISFILE=/orderer/crypto/genesis.block
- ORDERER_GENERAL_LOCALMSPID=OrdererMSP
- ORDERER_GENERAL_LOCALMSPDIR=/orderer/crypto/msp
- ORDERER_GENERAL_TLS_ENABLED=true
- ORDERER_GENERAL_TLS_PRIVATEKEY=/orderer/crypto/tls/server.key
- ORDERER_GENERAL_TLS_CERTIFICATE=/orderer/crypto/tls/server.crt
- ORDERER_GENERAL_TLS_ROOTCAS=[/orderer/crypto/tls/ca.crt]
working_dir: /orderer
command: orderer
ports:
- 7050:7050
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "10"
shop-peer:
container_name: shop-peer
image: shop-peer
environment:
- CORE_PEER_ID=shop-peer
- CORE_PEER_ADDRESS=shop-peer:7051
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=shop-peer:7051
- CORE_PEER_LOCALMSPID=ShopOrgMSP
- CORE_LEDGER_STATE_STATEDATABASE=CouchDB
- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=shop-statedb:5984
- CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME=
- CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD=
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=fitcoin_default
- CORE_LOGGING_LEVEL=DEBUG
- CORE_PEER_TLS_ENABLED=true
- CORE_PEER_ENDORSER_ENABLED=true
- CORE_PEER_GOSSIP_USELEADERELECTION=true
- CORE_PEER_GOSSIP_ORGLEADER=false
- CORE_PEER_PROFILE_ENABLED=true
- CORE_PEER_MSPCONFIGPATH=/peer/crypto/msp
- CORE_PEER_TLS_CERT_FILE=/peer/crypto/tls/server.crt
- CORE_PEER_TLS_KEY_FILE=/peer/crypto/tls/server.key
- CORE_PEER_TLS_ROOTCERT_FILE=/peer/crypto/tls/ca.crt
working_dir: /peer
command: peer node start
volumes:
- /var/run/:/host/var/run/
ports:
- 7051:7051
- 7053:7053
depends_on:
- orderer0
- shop-ca
- ca-datastore
- shop-statedb
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "10"
fitcoin-peer:
container_name: fitcoin-peer
image: fitcoin-peer
environment:
- CORE_PEER_ID=fitcoin-peer
- CORE_PEER_ADDRESS=fitcoin-peer:7051
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=fitcoin-peer:7051
- CORE_PEER_LOCALMSPID=FitCoinOrgMSP
- CORE_LEDGER_STATE_STATEDATABASE=CouchDB
- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=fitcoin-statedb:5984
- CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME=
- CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD=
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=fitcoin_default
- CORE_LOGGING_LEVEL=DEBUG
- CORE_PEER_TLS_ENABLED=true
- CORE_PEER_ENDORSER_ENABLED=true
- CORE_PEER_GOSSIP_USELEADERELECTION=true
- CORE_PEER_GOSSIP_ORGLEADER=false
- CORE_PEER_PROFILE_ENABLED=true
- CORE_PEER_MSPCONFIGPATH=/peer/crypto/msp
- CORE_PEER_TLS_CERT_FILE=/peer/crypto/tls/server.crt
- CORE_PEER_TLS_KEY_FILE=/peer/crypto/tls/server.key
- CORE_PEER_TLS_ROOTCERT_FILE=/peer/crypto/tls/ca.crt
working_dir: /peer
command: peer node start
volumes:
- /var/run/:/host/var/run/
ports:
- 8051:7051
- 8053:7053
depends_on:
- orderer0
- fitcoin-ca
- shop-peer
- ca-datastore
- fitcoin-statedb
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "10"
blockchain-setup :
container_name: blockchain-setup
image: blockchain-setup-couchdb
environment:
- DOCKER_SOCKET_PATH=/host/var/run/docker.sock
- DOCKER_CCENV_IMAGE=hyperledger/fabric-ccenv:x86_64-1.1.0
- SECRETSDIR=/run/secrets
volumes:
- /var/run/:/host/var/run/
depends_on:
- orderer0
- shop-ca
- shop-peer
- fitcoin-ca
- fitcoin-peer
secrets:
- config
- channel
secrets:
config:
file: ./configuration/config.json
channel:
file: ./configuration/channel.tx