1 Star 0 Fork 1

hexijiehaha/build-blockchain-insurance-app

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
docker-compose.yaml 3.40 KB
一键复制 编辑 原始数据 按行查看 历史
Hovig 提交于 2019-02-28 11:58 . migrating to the latest fabric
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hexijiehaha/build-blockchain-insurance-app.git
git@gitee.com:hexijiehaha/build-blockchain-insurance-app.git
hexijiehaha
build-blockchain-insurance-app
build-blockchain-insurance-app
master

搜索帮助