-
Notifications
You must be signed in to change notification settings - Fork 4
/
dc-peer-base.yml
41 lines (37 loc) · 1.41 KB
/
dc-peer-base.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
version: '2'
services:
peer:
image: hyperledger/fabric-peer
environment:
- CORE_PEER_ADDRESSAUTODETECT=true
#- CORE_VM_ENDPOINT=http://172.17.0.1:2375
- FABRIC_LOGGING_SPEC=warning
- CORE_LOGGING_LEVEL=DEBUG
# - CORE_LOGGING_GOSSIP=DEBUG
- CORE_PEER_NETWORKID=${CORE_PEER_NETWORKID}
- CORE_PEER_TLS_ENABLED=true
# This disables mutual auth for gossip
# - CORE_PEER_GOSSIP_SKIPHANDSHAKE=true
- CORE_PEER_GOSSIP_ORGLEADER=false
- CORE_PEER_GOSSIP_USELEADERELECTION=true
# Chaincode logging
# - CORE_VM_DOCKER_ATTACHSTDOUT=true
# - CORE_CHAINCODE_LOGGING_LEVEL=debug
ports:
- '7051'
- '7053'
volumes:
- /var/hyperledger/bddtests/volumes/peer:/var/hyperledger/bddtests/volumes/peer
- /var/run/docker.sock:/var/run/docker.sock
# Script will wait until membersrvc is up (if it exists) before starting
# $$GOPATH (double dollar) required to prevent docker-compose doing its own
# substitution before the value gets to the container
#command: sh -c "exec $$GOPATH/src/github.com/hyperledger/fabric/bddtests/scripts/start-peer.sh"
command: peer node start
# Use these options if coverage desired for peers
#image: hyperledger/fabric-peer-coverage
#command: ./peer.test --test.coverprofile=coverage.cov node start