mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-21 17:15:10 +00:00
Update the applications and scripts to use the new v2 SDKs and the new lifecycle Add in a basic script based on the readme.md that does a basic run of the scenario Signed-off-by: Matthew B White <whitemat@uk.ibm.com>
35 lines
1 KiB
YAML
35 lines
1 KiB
YAML
#
|
|
# Copyright IBM Corp All Rights Reserved
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
version: '2'
|
|
|
|
networks:
|
|
basic:
|
|
external:
|
|
name: net_basic
|
|
|
|
services:
|
|
cliDigiBank:
|
|
container_name: cliDigiBank
|
|
image: hyperledger/fabric-tools
|
|
tty: true
|
|
environment:
|
|
- GOPATH=/opt/gopath
|
|
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
|
|
- FABRIC_LOGGING_SPEC=info
|
|
- CORE_PEER_ID=cli
|
|
- CORE_PEER_ADDRESS=peer0.org1.example.com:7051
|
|
- CORE_PEER_LOCALMSPID=Org1MSP
|
|
- CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp
|
|
- CORE_CHAINCODE_KEEPALIVE=10
|
|
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer
|
|
command: /bin/bash
|
|
volumes:
|
|
- /var/run/:/host/var/run/
|
|
- ./../../../../organization/digibank:/opt/gopath/src/github.com/
|
|
- ./../../../../../basic-network/crypto-config:/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/
|
|
networks:
|
|
- basic
|
|
|