代码拉取完成,页面将自动刷新
version: '2'
services:
insurance-ca:
container_name: insurance-ca
extends:
file: ./ca-base.yaml
service: ca-base
image: insurance-ca
ports:
- 7054:7054
shop-ca:
container_name: shop-ca
extends:
file: ./ca-base.yaml
service: ca-base
image: shop-ca
ports:
- 8054:7054
repairshop-ca:
container_name: repairshop-ca
extends:
file: ./ca-base.yaml
service: ca-base
image: repairshop-ca
ports:
- 9054:7054
police-ca:
container_name: police-ca
extends:
file: ./ca-base.yaml
service: ca-base
image: police-ca
ports:
- 10054:7054
orderer0:
container_name: orderer0
image: orderer
environment:
- ORDERER_GENERAL_LOGLEVEL=debug
- ORDERER_GENERAL_LISTENADDRESS=0.0.0.0
- ORDERER_GENERAL_GENESISMETHOD=file
- ORDERER_GENERAL_GENESISFILE=/orderer/crypto/genesis.block
- ORDERER_GENERAL_LOCALMSPID=OrdererMSP
- ORDERER_GENERAL_LOCALMSPDIR=/orderer/crypto/msp
- ORDERER_GENERAL_TLS_ENABLED=true
- ORDERER_GENERAL_TLS_PRIVATEKEY=/orderer/crypto/tls/server.key
- ORDERER_GENERAL_TLS_CERTIFICATE=/orderer/crypto/tls/server.crt
- ORDERER_GENERAL_TLS_ROOTCAS=[/orderer/crypto/tls/ca.crt]
working_dir: /orderer
command: orderer
ports:
- 7050:7050
insurance-peer:
container_name: insurance-peer
extends:
file: ./peer-base.yaml
service: peer-base
image: insurance-peer
environment:
- CORE_PEER_ID=insurance-peer
- CORE_PEER_ADDRESS=insurance-peer:7051
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=insurance-peer:7051
- CORE_PEER_LOCALMSPID=InsuranceOrgMSP
ports:
- 7051:7051
- 7053:7053
depends_on:
- orderer0
shop-peer:
container_name: shop-peer
extends:
file: ./peer-base.yaml
service: peer-base
image: shop-peer
environment:
- CORE_PEER_ID=shop-peer
- CORE_PEER_ADDRESS=shop-peer:7051
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=shop-peer:7051
- CORE_PEER_LOCALMSPID=ShopOrgMSP
ports:
- 8051:7051
- 8053:7053
depends_on:
- orderer0
- insurance-peer
repairshop-peer:
container_name: repairshop-peer
extends:
file: ./peer-base.yaml
service: peer-base
image: repairshop-peer
environment:
- CORE_PEER_ID=repairshop-peer
- CORE_PEER_ADDRESS=repairshop-peer:7051
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=repairshop-peer:7051
- CORE_PEER_LOCALMSPID=RepairShopOrgMSP
ports:
- 9051:7051
- 9053:7053
depends_on:
- orderer0
- insurance-peer
- shop-peer
police-peer:
container_name: police-peer
extends:
file: ./peer-base.yaml
service: peer-base
image: police-peer
environment:
- CORE_PEER_ID=police-peer
- CORE_PEER_ADDRESS=police-peer:7051
- CORE_PEER_GOSSIP_EXTERNALENDPOINT=police-peer:7051
- CORE_PEER_LOCALMSPID=PoliceOrgMSP
ports:
- 10051:7051
- 10053:7053
depends_on:
- orderer0
- insurance-peer
- shop-peer
- repairshop-peer
web:
container_name: web
image: web
environment:
- PORT=3000
- DOCKER_SOCKET_PATH=/host/var/run/docker.sock
- DOCKER_CCENV_IMAGE=hyperledger/fabric-ccenv:latest
ports:
- 3000:3000
volumes:
- /var/run/:/host/var/run/
depends_on:
- orderer0
- insurance-ca
- insurance-peer
- shop-ca
- shop-peer
- repairshop-ca
- repairshop-peer
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。