mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-18 16:05:10 +00:00
217 lines
8.7 KiB
YAML
217 lines
8.7 KiB
YAML
# Copyright IBM Corp. All Rights Reserved.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
version: '3.7'
|
|
|
|
volumes:
|
|
orderer.varion.com:
|
|
peer0.farmer.varion.com:
|
|
peer0.pulper.varion.com:
|
|
peer0.huller.varion.com:
|
|
peer0.export.varion.com:
|
|
|
|
networks:
|
|
test:
|
|
name: fabric_test
|
|
|
|
services:
|
|
|
|
orderer.varion.com:
|
|
container_name: orderer.varion.com
|
|
image: hyperledger/fabric-orderer:latest
|
|
labels:
|
|
service: hyperledger-fabric
|
|
environment:
|
|
- FABRIC_LOGGING_SPEC=INFO
|
|
- ORDERER_GENERAL_LISTENADDRESS=0.0.0.0
|
|
- ORDERER_GENERAL_LISTENPORT=7050
|
|
- ORDERER_GENERAL_LOCALMSPID=OrdererMSP
|
|
- ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/orderer/msp
|
|
# enabled TLS
|
|
- ORDERER_GENERAL_TLS_ENABLED=true
|
|
- ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key
|
|
- ORDERER_GENERAL_TLS_CERTIFICATE=/var/hyperledger/orderer/tls/server.crt
|
|
- ORDERER_GENERAL_TLS_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt]
|
|
- ORDERER_GENERAL_CLUSTER_CLIENTCERTIFICATE=/var/hyperledger/orderer/tls/server.crt
|
|
- ORDERER_GENERAL_CLUSTER_CLIENTPRIVATEKEY=/var/hyperledger/orderer/tls/server.key
|
|
- ORDERER_GENERAL_CLUSTER_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt]
|
|
- ORDERER_GENERAL_BOOTSTRAPMETHOD=none
|
|
- ORDERER_CHANNELPARTICIPATION_ENABLED=true
|
|
- ORDERER_ADMIN_TLS_ENABLED=true
|
|
- ORDERER_ADMIN_TLS_CERTIFICATE=/var/hyperledger/orderer/tls/server.crt
|
|
- ORDERER_ADMIN_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key
|
|
- ORDERER_ADMIN_TLS_ROOTCAS=[/var/hyperledger/orderer/tls/ca.crt]
|
|
- ORDERER_ADMIN_TLS_CLIENTROOTCAS=[/var/hyperledger/orderer/tls/ca.crt]
|
|
- ORDERER_ADMIN_LISTENADDRESS=0.0.0.0:7053
|
|
- ORDERER_OPERATIONS_LISTENADDRESS=orderer.varion.com:9443
|
|
- ORDERER_METRICS_PROVIDER=prometheus
|
|
working_dir: /root
|
|
command: orderer
|
|
volumes:
|
|
- ../organizations/ordererOrganizations/varion.com/orderers/orderer.varion.com/msp:/var/hyperledger/orderer/msp
|
|
- ../organizations/ordererOrganizations/varion.com/orderers/orderer.varion.com/tls/:/var/hyperledger/orderer/tls
|
|
- orderer.varion.com:/var/hyperledger/production/orderer
|
|
ports:
|
|
- 7050:7050
|
|
- 7053:7053
|
|
- 9443:9443
|
|
networks:
|
|
- test
|
|
|
|
peer0.farmer.varion.com:
|
|
container_name: peer0.farmer.varion.com
|
|
image: hyperledger/fabric-peer:latest
|
|
labels:
|
|
service: hyperledger-fabric
|
|
environment:
|
|
- FABRIC_CFG_PATH=/etc/hyperledger/peercfg
|
|
- FABRIC_LOGGING_SPEC=INFO
|
|
#- FABRIC_LOGGING_SPEC=DEBUG
|
|
- CORE_PEER_TLS_ENABLED=true
|
|
- CORE_PEER_PROFILE_ENABLED=false
|
|
- CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt
|
|
- CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key
|
|
- CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt
|
|
# Peer specific variables
|
|
- CORE_PEER_ID=peer0.farmer.varion.com
|
|
- CORE_PEER_ADDRESS=peer0.farmer.varion.com:7051
|
|
- CORE_PEER_LISTENADDRESS=0.0.0.0:7051
|
|
- CORE_PEER_CHAINCODEADDRESS=peer0.farmer.varion.com:7052
|
|
- CORE_PEER_CHAINCODELISTENADDRESS=0.0.0.0:7052
|
|
- CORE_PEER_GOSSIP_BOOTSTRAP=peer0.farmer.varion.com:7051
|
|
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.farmer.varion.com:7051
|
|
- CORE_PEER_LOCALMSPID=FarmerMSP
|
|
- CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/fabric/msp
|
|
- CORE_OPERATIONS_LISTENADDRESS=peer0.farmer.varion.com:7444
|
|
- CORE_METRICS_PROVIDER=prometheus
|
|
- CHAINCODE_AS_A_SERVICE_BUILDER_CONFIG={"peername":"peer0farmer"}
|
|
- CORE_CHAINCODE_EXECUTETIMEOUT=300s
|
|
volumes:
|
|
- ../organizations/peerOrganizations/farmer.varion.com/peers/peer0.farmer.varion.com:/etc/hyperledger/fabric
|
|
- peer0.farmer.varion.com:/var/hyperledger/production
|
|
working_dir: /root
|
|
command: peer node start
|
|
ports:
|
|
- 7051:7051
|
|
- 7444:7444
|
|
networks:
|
|
- test
|
|
|
|
peer0.pulper.varion.com:
|
|
container_name: peer0.pulper.varion.com
|
|
image: hyperledger/fabric-peer:latest
|
|
labels:
|
|
service: hyperledger-fabric
|
|
environment:
|
|
- FABRIC_CFG_PATH=/etc/hyperledger/peercfg
|
|
- FABRIC_LOGGING_SPEC=INFO
|
|
#- FABRIC_LOGGING_SPEC=DEBUG
|
|
- CORE_PEER_TLS_ENABLED=true
|
|
- CORE_PEER_PROFILE_ENABLED=false
|
|
- CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt
|
|
- CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key
|
|
- CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt
|
|
# Peer specific variables
|
|
- CORE_PEER_ID=peer0.pulper.varion.com
|
|
- CORE_PEER_ADDRESS=peer0.pulper.varion.com:8051
|
|
- CORE_PEER_LISTENADDRESS=0.0.0.0:8051
|
|
- CORE_PEER_CHAINCODEADDRESS=peer0.pulper.varion.com:8052
|
|
- CORE_PEER_CHAINCODELISTENADDRESS=0.0.0.0:8052
|
|
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.pulper.varion.com:8051
|
|
- CORE_PEER_GOSSIP_BOOTSTRAP=peer0.pulper.varion.com:8051
|
|
- CORE_PEER_LOCALMSPID=PulperMSP
|
|
- CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/fabric/msp
|
|
- CORE_OPERATIONS_LISTENADDRESS=peer0.pulper.varion.com:8445
|
|
- CORE_METRICS_PROVIDER=prometheus
|
|
- CHAINCODE_AS_A_SERVICE_BUILDER_CONFIG={"peername":"peer0pulper"}
|
|
- CORE_CHAINCODE_EXECUTETIMEOUT=300s
|
|
volumes:
|
|
- ../organizations/peerOrganizations/pulper.varion.com/peers/peer0.pulper.varion.com:/etc/hyperledger/fabric
|
|
- peer0.pulper.varion.com:/var/hyperledger/production
|
|
working_dir: /root
|
|
command: peer node start
|
|
ports:
|
|
- 8051:8051
|
|
- 8445:8445
|
|
networks:
|
|
- test
|
|
|
|
peer0.huller.varion.com:
|
|
container_name: peer0.huller.varion.com
|
|
image: hyperledger/fabric-peer:latest
|
|
labels:
|
|
service: hyperledger-fabric
|
|
environment:
|
|
- FABRIC_CFG_PATH=/etc/hyperledger/peercfg
|
|
- FABRIC_LOGGING_SPEC=INFO
|
|
#- FABRIC_LOGGING_SPEC=DEBUG
|
|
- CORE_PEER_TLS_ENABLED=true
|
|
- CORE_PEER_PROFILE_ENABLED=false
|
|
- CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt
|
|
- CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key
|
|
- CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt
|
|
# Peer specific variables
|
|
- CORE_PEER_ID=peer0.huller.varion.com
|
|
- CORE_PEER_ADDRESS=peer0.huller.varion.com:9051
|
|
- CORE_PEER_LISTENADDRESS=0.0.0.0:9051
|
|
- CORE_PEER_CHAINCODEADDRESS=peer0.huller.varion.com:9052
|
|
- CORE_PEER_CHAINCODELISTENADDRESS=0.0.0.0:9052
|
|
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.huller.varion.com:9051
|
|
- CORE_PEER_GOSSIP_BOOTSTRAP=peer0.huller.varion.com:9051
|
|
- CORE_PEER_LOCALMSPID=HullerMSP
|
|
- CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/fabric/msp
|
|
- CORE_OPERATIONS_LISTENADDRESS=peer0.huller.varion.com:9446
|
|
- CORE_METRICS_PROVIDER=prometheus
|
|
- CHAINCODE_AS_A_SERVICE_BUILDER_CONFIG={"peername":"peer0huller"}
|
|
- CORE_CHAINCODE_EXECUTETIMEOUT=300s
|
|
volumes:
|
|
- ../organizations/peerOrganizations/huller.varion.com/peers/peer0.huller.varion.com:/etc/hyperledger/fabric
|
|
- peer0.huller.varion.com:/var/hyperledger/production
|
|
working_dir: /root
|
|
command: peer node start
|
|
ports:
|
|
- 9051:9051
|
|
- 9446:9446
|
|
networks:
|
|
- test
|
|
|
|
peer0.export.varion.com:
|
|
container_name: peer0.export.varion.com
|
|
image: hyperledger/fabric-peer:latest
|
|
labels:
|
|
service: hyperledger-fabric
|
|
environment:
|
|
- FABRIC_CFG_PATH=/etc/hyperledger/peercfg
|
|
- FABRIC_LOGGING_SPEC=INFO
|
|
#- FABRIC_LOGGING_SPEC=DEBUG
|
|
- CORE_PEER_TLS_ENABLED=true
|
|
- CORE_PEER_PROFILE_ENABLED=false
|
|
- CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt
|
|
- CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key
|
|
- CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt
|
|
# Peer specific variables
|
|
- CORE_PEER_ID=peer0.export.varion.com
|
|
- CORE_PEER_ADDRESS=peer0.export.varion.com:10051
|
|
- CORE_PEER_LISTENADDRESS=0.0.0.0:10051
|
|
- CORE_PEER_CHAINCODEADDRESS=peer0.export.varion.com:10052
|
|
- CORE_PEER_CHAINCODELISTENADDRESS=0.0.0.0:10052
|
|
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.export.varion.com:10051
|
|
- CORE_PEER_GOSSIP_BOOTSTRAP=peer0.export.varion.com:10051
|
|
- CORE_PEER_LOCALMSPID=ExportMSP
|
|
- CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/fabric/msp
|
|
- CORE_OPERATIONS_LISTENADDRESS=peer0.export.varion.com:10447
|
|
- CORE_METRICS_PROVIDER=prometheus
|
|
- CHAINCODE_AS_A_SERVICE_BUILDER_CONFIG={"peername":"peer0export"}
|
|
- CORE_CHAINCODE_EXECUTETIMEOUT=300s
|
|
volumes:
|
|
- ../organizations/peerOrganizations/export.varion.com/peers/peer0.export.varion.com:/etc/hyperledger/fabric
|
|
- peer0.export.varion.com:/var/hyperledger/production
|
|
working_dir: /root
|
|
command: peer node start
|
|
ports:
|
|
- 10051:10051
|
|
- 10447:10447
|
|
networks:
|
|
- test
|