docker-compose-files/hyperledger_fabric/v1.4.6/docker-compose-2orgs-4peers...

60 lines
1.3 KiB
YAML

# https://github.com/yeasy/docker-compose-files/tree/master/hyperledger
# This compose file will start a Hyperledger Fabric 1.0 MVE, including
# * 1 ca
# * 1 orderer
# * 4 peers in 2 orgs
# * cli for testing
version: '2.0'
services:
orderer.example.com: # There can be multiple orderers
extends:
file: base-event.yaml
service: orderer.example.com
peer0.org1.example.com:
extends:
file: base-event.yaml
service: peer0.org1.example.com
depends_on:
- orderer.example.com
peer1.org1.example.com:
extends:
file: base-event.yaml
service: peer1.org1.example.com
depends_on:
- orderer.example.com
peer0.org2.example.com:
extends:
file: base-event.yaml
service: peer0.org2.example.com
depends_on:
- orderer.example.com
peer1.org2.example.com:
extends:
file: base-event.yaml
service: peer1.org2.example.com
depends_on:
- orderer.example.com
cli:
extends:
file: base-event.yaml
service: cli
event-listener:
extends:
file: base-event.yaml
service: event-listener
depends_on:
- orderer.example.com
- peer0.org1.example.com
- peer1.org1.example.com
- peer0.org2.example.com
- peer1.org2.example.com