mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
* Experimental Support for using podman with the test-network Signed-off-by: Matthew B White <whitemat@uk.ibm.com> * supplement podman with nerdctl Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> * adds experimental support for nerdctl compose Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> * install fabric images to containerd with 'nerdctl' pull Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> * Podman Support Use a core set of compose files, with overlays for specific details. In the case of podman, the overlays refer to a specific core.yaml for the peer that distables the use of teh docker daemon In the case of docker, the overlays add enable the docker daemon accesss for the peer to create chaincode containers Signed-off-by: Matthew B White <whitemat@uk.ibm.com> Co-authored-by: Josh Kneubuhl <jkneubuh@us.ibm.com>
42 lines
1.3 KiB
YAML
42 lines
1.3 KiB
YAML
# Copyright IBM Corp. All Rights Reserved.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
version: '3.7'
|
|
|
|
networks:
|
|
test:
|
|
name: fabric_test
|
|
|
|
services:
|
|
couchdb4:
|
|
container_name: couchdb4
|
|
image: couchdb:3.1.1
|
|
labels:
|
|
service: hyperledger-fabric
|
|
# 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=admin
|
|
- COUCHDB_PASSWORD=adminpw
|
|
# 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:
|
|
- test
|
|
|
|
peer0.org3.example.com:
|
|
environment:
|
|
- CORE_LEDGER_STATE_STATEDATABASE=CouchDB
|
|
- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb4: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=admin
|
|
- CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD=adminpw
|
|
depends_on:
|
|
- couchdb4
|
|
networks:
|
|
- test
|