最近我正在进行一些hyperledger结构的实现,我遇到了一些混乱的环境变量用于结构组件(其中一些列在下面)。是否有任何文档可供我阅读有关结构组件的所有环境变量的信息。目前我对Fabric peer下面的环境变量感到困惑:
答案 0 :(得分:1)
所有环境变量实际上镜像了前缀为CORE_PEER
的配置参数,其中大多数都在core.yaml
内有下降文档。在环境变量中设置这些参数背后的意图是能够在docker容器中覆盖它们。
例如CORE_PEER_ADDRESS
,CORE_PEER_NETWORKID
,CORE_PEER_ID
:
###############################################################################
#
# Peer section
#
###############################################################################
peer:
# The Peer id is used for identifying this Peer instance.
id: jdoe
# The networkId allows for logical seperation of networks
networkId: dev
# The endpoint this peer uses to listen for inbound chaincode connections.
# If this is commented-out, the listen address is selected to be
# the peer's address (see below) with port 7052
# chaincodeListenAddress: 0.0.0.0:7052
# The endpoint the chaincode for this peer uses to connect to the peer.
# If this is not specified, the chaincodeListenAddress address is selected.
# And if chaincodeListenAddress is not specified, address is selected from
# peer listenAddress.
# chaincodeAddress: 0.0.0.0:7052
# When used as peer config, this represents the endpoint to other peers
# in the same organization. For peers in other organization, see
# gossip.externalEndpoint for more info.
# When used as CLI config, this means the peer's endpoint to interact with
address: 0.0.0.0:7051
您可以找到更多here。