-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-8540] Add ledger persistance to first-network
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: I1ee5faa33c7f0ce18fe7711f5f752d7bf18f117c Signed-off-by: Jason Yellick <jyellick@us.ibm.com> Signed-off-by: Surya <suryalnvs@gmail.com>
- Loading branch information
Jason Yellick
committed
Feb 27, 2018
1 parent
981efba
commit c6166d6
Showing
2 changed files
with
54 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# 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 |