mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 23:45:10 +00:00
This change brings a new set of scripts and configuration files to the first-network sample to make it easier for people to follow the new tutorial on how to add a third org to the network setup in BYFN. To function properly the new Extend You First Network script (eyfn.sh) must be run after byfn.sh is run and with the same parameters. So, valid uses include: ./byfn.sh up ./eyfn.sh up or ./byfn.sh up -c testchannel -s couchdb -l node ./eyfn.sh up -c testchannel -s couchdb -l node A single './eyfn.sh down' command is however necessary to take the whole network down. Patch-set #2: fixes ./eyfn.sh down Patch-set #3: removed unused option from Usage and spurious whitespaces Patch-set #4: added missing test file Change-Id: I9c926b52f2243dda1c5f9368112c314a6c5c6929 Signed-off-by: Arnaud J Le Hors <lehors@us.ibm.com>
64 lines
2.3 KiB
YAML
64 lines
2.3 KiB
YAML
# Copyright IBM Corp. All Rights Reserved.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
version: '2'
|
|
|
|
networks:
|
|
byfn:
|
|
|
|
services:
|
|
couchdb4:
|
|
container_name: couchdb4
|
|
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:
|
|
- "9984:5984"
|
|
networks:
|
|
- byfn
|
|
|
|
peer0.org3.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:
|
|
- couchdb4
|
|
|
|
couchdb5:
|
|
container_name: couchdb5
|
|
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:
|
|
- "10984:5984"
|
|
networks:
|
|
- byfn
|
|
|
|
peer1.org3.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:
|
|
- couchdb5
|