mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-18 16:05:10 +00:00
basic network: - update docker-compose.yaml to use v1.0.2 - regenerate artifacts fabcar: - update creds chaincode-docker-devmode: - renegerate channel tx and genesis block balance-transfer: - update docker-compose.yaml - update readme to use download link - regenerate channel artifacts Change-Id: I7d52f1afce51ea9e1b115fa287d281af95d9ad85 Signed-off-by: Gari Singh <gari.r.singh@gmail.com>
30 lines
1.2 KiB
YAML
30 lines
1.2 KiB
YAML
# Copyright IBM Corp. All Rights Reserved.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
version: '2'
|
|
services:
|
|
peer-base:
|
|
image: hyperledger/fabric-peer
|
|
environment:
|
|
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
|
|
# the following setting starts chaincode containers on the same
|
|
# bridge network as the peers
|
|
# https://docs.docker.com/compose/networking/
|
|
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=artifacts_default
|
|
- CORE_LOGGING_LEVEL=DEBUG
|
|
- CORE_PEER_GOSSIP_USELEADERELECTION=true
|
|
- CORE_PEER_GOSSIP_ORGLEADER=false
|
|
# The following setting skips the gossip handshake since we are
|
|
# are not doing mutual TLS
|
|
- CORE_PEER_GOSSIP_SKIPHANDSHAKE=true
|
|
- CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/crypto/peer/msp
|
|
- CORE_PEER_TLS_ENABLED=true
|
|
- CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/crypto/peer/tls/server.key
|
|
- CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/crypto/peer/tls/server.crt
|
|
- CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/crypto/peer/tls/ca.crt
|
|
working_dir: /opt/gopath/src/github.com/hyperledger/fabric/peer
|
|
command: peer node start
|
|
volumes:
|
|
- /var/run/:/host/var/run/
|