mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-21 17:15:10 +00:00
Merge "[FAB-5453] Enable CouchDB passwords in Fabric Samples"
This commit is contained in:
commit
7dc852b15a
2 changed files with 50 additions and 0 deletions
|
|
@ -61,6 +61,11 @@ services:
|
||||||
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=${COMPOSE_PROJECT_NAME}_basic
|
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=${COMPOSE_PROJECT_NAME}_basic
|
||||||
- CORE_LEDGER_STATE_STATEDATABASE=CouchDB
|
- CORE_LEDGER_STATE_STATEDATABASE=CouchDB
|
||||||
- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb:5984
|
- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb: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=
|
||||||
working_dir: /opt/gopath/src/github.com/hyperledger/fabric
|
working_dir: /opt/gopath/src/github.com/hyperledger/fabric
|
||||||
command: peer node start
|
command: peer node start
|
||||||
# command: peer node start --peer-chaincodedev=true
|
# command: peer node start --peer-chaincodedev=true
|
||||||
|
|
@ -81,6 +86,11 @@ services:
|
||||||
couchdb:
|
couchdb:
|
||||||
container_name: couchdb
|
container_name: couchdb
|
||||||
image: hyperledger/fabric-couchdb:x86_64-1.0.0
|
image: hyperledger/fabric-couchdb:x86_64-1.0.0
|
||||||
|
# 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=
|
||||||
ports:
|
ports:
|
||||||
- 5984:5984
|
- 5984:5984
|
||||||
networks:
|
networks:
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,11 @@ services:
|
||||||
couchdb0:
|
couchdb0:
|
||||||
container_name: couchdb0
|
container_name: couchdb0
|
||||||
image: hyperledger/fabric-couchdb
|
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,
|
# 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.
|
# for example map it to utilize Fauxton User Interface in dev environments.
|
||||||
ports:
|
ports:
|
||||||
|
|
@ -23,12 +28,22 @@ services:
|
||||||
environment:
|
environment:
|
||||||
- CORE_LEDGER_STATE_STATEDATABASE=CouchDB
|
- CORE_LEDGER_STATE_STATEDATABASE=CouchDB
|
||||||
- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb0:5984
|
- 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:
|
depends_on:
|
||||||
- couchdb0
|
- couchdb0
|
||||||
|
|
||||||
couchdb1:
|
couchdb1:
|
||||||
container_name: couchdb1
|
container_name: couchdb1
|
||||||
image: hyperledger/fabric-couchdb
|
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,
|
# 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.
|
# for example map it to utilize Fauxton User Interface in dev environments.
|
||||||
ports:
|
ports:
|
||||||
|
|
@ -40,12 +55,22 @@ services:
|
||||||
environment:
|
environment:
|
||||||
- CORE_LEDGER_STATE_STATEDATABASE=CouchDB
|
- CORE_LEDGER_STATE_STATEDATABASE=CouchDB
|
||||||
- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb1:5984
|
- 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:
|
depends_on:
|
||||||
- couchdb1
|
- couchdb1
|
||||||
|
|
||||||
couchdb2:
|
couchdb2:
|
||||||
container_name: couchdb2
|
container_name: couchdb2
|
||||||
image: hyperledger/fabric-couchdb
|
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,
|
# 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.
|
# for example map it to utilize Fauxton User Interface in dev environments.
|
||||||
ports:
|
ports:
|
||||||
|
|
@ -57,12 +82,22 @@ services:
|
||||||
environment:
|
environment:
|
||||||
- CORE_LEDGER_STATE_STATEDATABASE=CouchDB
|
- CORE_LEDGER_STATE_STATEDATABASE=CouchDB
|
||||||
- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb2:5984
|
- 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:
|
depends_on:
|
||||||
- couchdb2
|
- couchdb2
|
||||||
|
|
||||||
couchdb3:
|
couchdb3:
|
||||||
container_name: couchdb3
|
container_name: couchdb3
|
||||||
image: hyperledger/fabric-couchdb
|
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,
|
# 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.
|
# for example map it to utilize Fauxton User Interface in dev environments.
|
||||||
ports:
|
ports:
|
||||||
|
|
@ -74,5 +109,10 @@ services:
|
||||||
environment:
|
environment:
|
||||||
- CORE_LEDGER_STATE_STATEDATABASE=CouchDB
|
- CORE_LEDGER_STATE_STATEDATABASE=CouchDB
|
||||||
- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb3:5984
|
- 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:
|
depends_on:
|
||||||
- couchdb3
|
- couchdb3
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue