64 lines
1.9 KiB
YAML
64 lines
1.9 KiB
YAML
|
|
version: '2'
|
|
|
|
services:
|
|
couchdb0:
|
|
container_name: couchdb0
|
|
image: hyperledger/fabric-couchdb:x86_64-1.0.0-beta
|
|
# Comment/Uncomment the port mapping if you want to hide/expose the CouchDB service,
|
|
# for example map it to utilize Fauxton User Interface in dev environments.
|
|
ports:
|
|
- "5984:5984"
|
|
|
|
peer0.org1.example.com:
|
|
environment:
|
|
- CORE_LEDGER_STATE_STATEDATABASE=CouchDB
|
|
- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb0:5984
|
|
depends_on:
|
|
- couchdb0
|
|
|
|
couchdb1:
|
|
container_name: couchdb1
|
|
image: hyperledger/fabric-couchdb:x86_64-1.0.0-beta
|
|
# Comment/Uncomment the port mapping if you want to hide/expose the CouchDB service,
|
|
# for example map it to utilize Fauxton User Interface in dev environments.
|
|
ports:
|
|
- "6984:5984"
|
|
|
|
peer1.org1.example.com:
|
|
environment:
|
|
- CORE_LEDGER_STATE_STATEDATABASE=CouchDB
|
|
- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb1:5984
|
|
depends_on:
|
|
- couchdb1
|
|
|
|
couchdb2:
|
|
container_name: couchdb2
|
|
image: hyperledger/fabric-couchdb:x86_64-1.0.0-beta
|
|
# Comment/Uncomment the port mapping if you want to hide/expose the CouchDB service,
|
|
# for example map it to utilize Fauxton User Interface in dev environments.
|
|
ports:
|
|
- "7984:5984"
|
|
|
|
peer0.org2.example.com:
|
|
environment:
|
|
- CORE_LEDGER_STATE_STATEDATABASE=CouchDB
|
|
- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb2:5984
|
|
depends_on:
|
|
- couchdb2
|
|
|
|
couchdb3:
|
|
container_name: couchdb3
|
|
image: hyperledger/fabric-couchdb:x86_64-1.0.0-beta
|
|
# Comment/Uncomment the port mapping if you want to hide/expose the CouchDB service,
|
|
# for example map it to utilize Fauxton User Interface in dev environments.
|
|
ports:
|
|
- "8984:5984"
|
|
|
|
peer1.org2.example.com:
|
|
environment:
|
|
- CORE_LEDGER_STATE_STATEDATABASE=CouchDB
|
|
- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb3:5984
|
|
depends_on:
|
|
- couchdb3
|