2019-04-01 16:21:22 +08:00
|
|
|
# https://github.com/yeasy/docker-compose-files/tree/master/hyperledger
|
2019-12-28 09:43:08 +08:00
|
|
|
# This compose file will start a Hyperledger Fabric 2.0 MVE, including
|
2019-04-01 16:21:22 +08:00
|
|
|
# * 2 ca (not in use now)
|
2019-12-28 09:43:08 +08:00
|
|
|
# * 3 orderers
|
2019-04-01 16:21:22 +08:00
|
|
|
# * 4 peers in 2 orgs
|
|
|
|
# * cli for testing
|
|
|
|
|
|
|
|
version: '2.0'
|
|
|
|
|
|
|
|
services:
|
|
|
|
# ca.org1.example.com:
|
|
|
|
# extends:
|
|
|
|
# file: base-raft.yaml
|
|
|
|
# service: ca.org1.example.com
|
|
|
|
|
|
|
|
# ca.org2.example.com:
|
|
|
|
# extends:
|
|
|
|
# file: base-raft.yaml
|
|
|
|
# service: ca.org2.example.com
|
|
|
|
|
|
|
|
cli:
|
|
|
|
extends:
|
|
|
|
file: base-raft.yaml
|
|
|
|
service: cli
|
|
|
|
|
|
|
|
orderer0.example.com: # There can be multiple orderers
|
|
|
|
extends:
|
|
|
|
file: base-raft.yaml
|
|
|
|
service: orderer0.example.com
|
|
|
|
|
|
|
|
orderer1.example.com: # There can be multiple orderers
|
|
|
|
extends:
|
|
|
|
file: base-raft.yaml
|
|
|
|
service: orderer1.example.com
|
|
|
|
|
|
|
|
orderer2.example.com: # There can be multiple orderers
|
|
|
|
extends:
|
|
|
|
file: base-raft.yaml
|
|
|
|
service: orderer2.example.com
|
|
|
|
|
|
|
|
peer0.org1.example.com:
|
|
|
|
extends:
|
|
|
|
file: base-raft.yaml
|
|
|
|
service: peer0.org1.example.com
|
|
|
|
depends_on:
|
|
|
|
- orderer0.example.com
|
|
|
|
- orderer1.example.com
|
2019-12-28 09:43:08 +08:00
|
|
|
- orderer2.example.com
|
2019-04-01 16:21:22 +08:00
|
|
|
|
|
|
|
peer1.org1.example.com:
|
|
|
|
extends:
|
|
|
|
file: base-raft.yaml
|
|
|
|
service: peer1.org1.example.com
|
|
|
|
depends_on:
|
2019-12-28 09:43:08 +08:00
|
|
|
- orderer0.example.com
|
|
|
|
- orderer1.example.com
|
|
|
|
- orderer2.example.com
|
2019-04-01 16:21:22 +08:00
|
|
|
|
|
|
|
peer0.org2.example.com:
|
|
|
|
extends:
|
|
|
|
file: base-raft.yaml
|
|
|
|
service: peer0.org2.example.com
|
|
|
|
depends_on:
|
2019-12-28 09:43:08 +08:00
|
|
|
- orderer0.example.com
|
|
|
|
- orderer1.example.com
|
|
|
|
- orderer2.example.com
|
2019-04-01 16:21:22 +08:00
|
|
|
|
|
|
|
peer1.org2.example.com:
|
|
|
|
extends:
|
|
|
|
file: base-raft.yaml
|
|
|
|
service: peer1.org2.example.com
|
|
|
|
depends_on:
|
2019-12-28 09:43:08 +08:00
|
|
|
- orderer0.example.com
|
|
|
|
- orderer1.example.com
|
|
|
|
- orderer2.example.com
|
2019-04-01 16:21:22 +08:00
|
|
|
|
|
|
|
#networks:
|
|
|
|
# default:
|
|
|
|
# external:
|
|
|
|
# name: hyperledger_fabric
|