2017-09-01 20:09:18 +08:00
|
|
|
# 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:
|
2018-01-03 21:19:09 +08:00
|
|
|
file: base-event.yaml
|
2017-09-01 20:09:18 +08:00
|
|
|
service: orderer.example.com
|
|
|
|
|
|
|
|
peer0.org1.example.com:
|
|
|
|
extends:
|
2018-01-03 21:19:09 +08:00
|
|
|
file: base-event.yaml
|
2017-09-01 20:09:18 +08:00
|
|
|
service: peer0.org1.example.com
|
2018-01-03 21:19:09 +08:00
|
|
|
depends_on:
|
|
|
|
- orderer.example.com
|
2017-09-01 20:09:18 +08:00
|
|
|
|
|
|
|
peer1.org1.example.com:
|
|
|
|
extends:
|
2018-01-03 21:19:09 +08:00
|
|
|
file: base-event.yaml
|
2017-09-01 20:09:18 +08:00
|
|
|
service: peer1.org1.example.com
|
2018-01-03 21:19:09 +08:00
|
|
|
depends_on:
|
|
|
|
- orderer.example.com
|
2017-09-01 20:09:18 +08:00
|
|
|
|
|
|
|
peer0.org2.example.com:
|
|
|
|
extends:
|
2018-01-03 21:19:09 +08:00
|
|
|
file: base-event.yaml
|
2017-09-01 20:09:18 +08:00
|
|
|
service: peer0.org2.example.com
|
2018-01-03 21:19:09 +08:00
|
|
|
depends_on:
|
|
|
|
- orderer.example.com
|
2017-09-01 20:09:18 +08:00
|
|
|
|
|
|
|
peer1.org2.example.com:
|
|
|
|
extends:
|
2018-01-03 21:19:09 +08:00
|
|
|
file: base-event.yaml
|
2017-09-01 20:09:18 +08:00
|
|
|
service: peer1.org2.example.com
|
2018-01-03 21:19:09 +08:00
|
|
|
depends_on:
|
|
|
|
- orderer.example.com
|
2017-09-01 20:09:18 +08:00
|
|
|
|
|
|
|
cli:
|
2017-09-29 13:19:06 +08:00
|
|
|
extends:
|
2018-01-03 21:19:09 +08:00
|
|
|
file: base-event.yaml
|
2017-09-29 13:19:06 +08:00
|
|
|
service: cli
|
2017-09-01 20:09:18 +08:00
|
|
|
|
|
|
|
event-listener:
|
2018-01-03 21:19:09 +08:00
|
|
|
extends:
|
|
|
|
file: base-event.yaml
|
|
|
|
service: event-listener
|
2017-09-01 20:09:18 +08:00
|
|
|
depends_on:
|
|
|
|
- orderer.example.com
|
|
|
|
- peer0.org1.example.com
|
|
|
|
- peer1.org1.example.com
|
|
|
|
- peer0.org2.example.com
|
|
|
|
- peer1.org2.example.com
|