mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
This CR is for the release branch. This CR adds a new docker-compose-persist.yaml file which creates a volume mount in the current directory at ./ledgers/<container> and binds it to the ledger directory for the container. It also adds a '-p' flag to the byfn.sh script to allow users to include this new compose file when bringing up the network. Change-Id: I311ca1d2157dd87e61ad890c98cde7c118d5ee7d Signed-off-by: Jason Yellick <jyellick@us.ibm.com> Signed-off-by: Surya <suryalnvs@gmail.com>
31 lines
676 B
YAML
31 lines
676 B
YAML
# Copyright IBM Corp. All Rights Reserved.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
version: '2'
|
|
|
|
networks:
|
|
byfn:
|
|
|
|
services:
|
|
|
|
orderer.example.com:
|
|
volumes:
|
|
- ./ledgers/orderer.example.com:/var/hyperledger/production/orderer
|
|
|
|
peer0.org1.example.com:
|
|
volumes:
|
|
- ./ledgers/peer0.org1.example.com:/var/hyperledger/production
|
|
|
|
peer1.org1.example.com:
|
|
volumes:
|
|
- ./ledgers/peer1.org1.example.com:/var/hyperledger/production
|
|
|
|
peer0.org2.example.com:
|
|
volumes:
|
|
- ./ledgers/peer0.org2.example.com:/var/hyperledger/production
|
|
|
|
peer1.org2.example.com:
|
|
volumes:
|
|
- ./ledgers/peer1.org2.example.com:/var/hyperledger/production
|