mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
As of 1.1 alpha timeframe, 3rd party images do not follow the same docker IMAGE_TAG versioning as the other Fabric docker images. Need to remove IMAGE_TAG from couchdb images, and default to latest couchdb image, which is how it worked prior to the -i introduction. This change needs to be made in master branch but not release branch, since the IMAGE_TAGs are aligned in 1.0.x release. Change-Id: Iaca24ea7ed1fc6319738dcf59f665da9259d2b9a Signed-off-by: David Enyeart <enyeart@us.ibm.com>
118 lines
4.5 KiB
YAML
118 lines
4.5 KiB
YAML
# Copyright IBM Corp. All Rights Reserved.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
version: '2'
|
|
|
|
networks:
|
|
byfn:
|
|
|
|
services:
|
|
couchdb0:
|
|
container_name: couchdb0
|
|
image: hyperledger/fabric-couchdb
|
|
# Populate the COUCHDB_USER and COUCHDB_PASSWORD to set an admin user and password
|
|
# for CouchDB. This will prevent CouchDB from operating in an "Admin Party" mode.
|
|
environment:
|
|
- COUCHDB_USER=
|
|
- COUCHDB_PASSWORD=
|
|
# 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"
|
|
networks:
|
|
- byfn
|
|
|
|
peer0.org1.example.com:
|
|
environment:
|
|
- CORE_LEDGER_STATE_STATEDATABASE=CouchDB
|
|
- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb0:5984
|
|
# The CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME and CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD
|
|
# provide the credentials for ledger to connect to CouchDB. The username and password must
|
|
# match the username and password set for the associated CouchDB.
|
|
- CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME=
|
|
- CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD=
|
|
depends_on:
|
|
- couchdb0
|
|
|
|
couchdb1:
|
|
container_name: couchdb1
|
|
image: hyperledger/fabric-couchdb
|
|
# Populate the COUCHDB_USER and COUCHDB_PASSWORD to set an admin user and password
|
|
# for CouchDB. This will prevent CouchDB from operating in an "Admin Party" mode.
|
|
environment:
|
|
- COUCHDB_USER=
|
|
- COUCHDB_PASSWORD=
|
|
# 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"
|
|
networks:
|
|
- byfn
|
|
|
|
peer1.org1.example.com:
|
|
environment:
|
|
- CORE_LEDGER_STATE_STATEDATABASE=CouchDB
|
|
- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb1:5984
|
|
# The CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME and CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD
|
|
# provide the credentials for ledger to connect to CouchDB. The username and password must
|
|
# match the username and password set for the associated CouchDB.
|
|
- CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME=
|
|
- CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD=
|
|
depends_on:
|
|
- couchdb1
|
|
|
|
couchdb2:
|
|
container_name: couchdb2
|
|
image: hyperledger/fabric-couchdb
|
|
# Populate the COUCHDB_USER and COUCHDB_PASSWORD to set an admin user and password
|
|
# for CouchDB. This will prevent CouchDB from operating in an "Admin Party" mode.
|
|
environment:
|
|
- COUCHDB_USER=
|
|
- COUCHDB_PASSWORD=
|
|
# 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"
|
|
networks:
|
|
- byfn
|
|
|
|
peer0.org2.example.com:
|
|
environment:
|
|
- CORE_LEDGER_STATE_STATEDATABASE=CouchDB
|
|
- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb2:5984
|
|
# The CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME and CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD
|
|
# provide the credentials for ledger to connect to CouchDB. The username and password must
|
|
# match the username and password set for the associated CouchDB.
|
|
- CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME=
|
|
- CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD=
|
|
depends_on:
|
|
- couchdb2
|
|
|
|
couchdb3:
|
|
container_name: couchdb3
|
|
image: hyperledger/fabric-couchdb
|
|
# Populate the COUCHDB_USER and COUCHDB_PASSWORD to set an admin user and password
|
|
# for CouchDB. This will prevent CouchDB from operating in an "Admin Party" mode.
|
|
environment:
|
|
- COUCHDB_USER=
|
|
- COUCHDB_PASSWORD=
|
|
# 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"
|
|
networks:
|
|
- byfn
|
|
|
|
peer1.org2.example.com:
|
|
environment:
|
|
- CORE_LEDGER_STATE_STATEDATABASE=CouchDB
|
|
- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb3:5984
|
|
# The CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME and CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD
|
|
# provide the credentials for ledger to connect to CouchDB. The username and password must
|
|
# match the username and password set for the associated CouchDB.
|
|
- CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME=
|
|
- CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD=
|
|
depends_on:
|
|
- couchdb3
|