-
Notifications
You must be signed in to change notification settings - Fork 4
/
dc-peer-couchdb.yml
64 lines (54 loc) · 1.48 KB
/
dc-peer-couchdb.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
# Copyright IBM Corp. 2017 All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
version: '2'
services:
couchdb0:
image: hyperledger/fabric-couchdb${COUCHDB0_VERSION_EXTENSION}
ports:
- '5984'
volumes:
- ${COUCHDB0_HOST_DATA_DIR}:/opt/couchdb/data
peer0:
environment:
- CORE_LEDGER_STATE_STATEDATABASE=CouchDB
- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb0:5984
depends_on:
- couchdb0
couchdb1:
image: hyperledger/fabric-couchdb${COUCHDB1_VERSION_EXTENSION}
ports:
- '5984'
volumes:
- ${COUCHDB1_HOST_DATA_DIR}:/opt/couchdb/data
peer1:
environment:
- CORE_LEDGER_STATE_STATEDATABASE=CouchDB
- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb1:5984
depends_on:
- couchdb1
couchdb2:
image: hyperledger/fabric-couchdb${COUCHDB2_VERSION_EXTENSION}
ports:
- '5984'
volumes:
- ${COUCHDB2_HOST_DATA_DIR}:/opt/couchdb/data
peer2:
environment:
- CORE_LEDGER_STATE_STATEDATABASE=CouchDB
- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb2:5984
depends_on:
- couchdb2
couchdb3:
image: hyperledger/fabric-couchdb${COUCHDB3_VERSION_EXTENSION}
ports:
- '5984'
volumes:
- ${COUCHDB3_HOST_DATA_DIR}:/opt/couchdb/data
peer3:
environment:
- CORE_LEDGER_STATE_STATEDATABASE=CouchDB
- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb3:5984
depends_on:
- couchdb3