2018-01-03 21:19:09 +08:00
|
|
|
# https://github.com/yeasy/files/tree/master/hyperledger
|
2017-09-01 20:09:18 +08:00
|
|
|
# This compose file will start a Hyperledger Fabric 1.0 MVE, including
|
|
|
|
# * 1 ca
|
|
|
|
# * 1 orderer
|
|
|
|
# * 1 peer
|
|
|
|
# * 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-dev.yaml
|
2017-10-05 23:21:54 +08:00
|
|
|
service: orderer.example.com
|
|
|
|
depends_on:
|
|
|
|
- kafka0
|
|
|
|
- kafka1
|
|
|
|
- kafka2
|
|
|
|
- kafka3
|
2017-09-13 13:06:52 +08:00
|
|
|
|
|
|
|
peer0.org1.example.com:
|
|
|
|
extends:
|
2018-01-03 21:19:09 +08:00
|
|
|
file: base-dev.yaml
|
2017-10-05 23:21:54 +08:00
|
|
|
service: peer0.org1.example.com
|
|
|
|
depends_on:
|
|
|
|
- orderer.example.com
|
2017-09-01 20:09:18 +08:00
|
|
|
|
|
|
|
cli:
|
|
|
|
extends:
|
2018-01-03 21:19:09 +08:00
|
|
|
file: base-dev.yaml
|
2017-10-05 23:21:54 +08:00
|
|
|
service: cli
|
|
|
|
depends_on:
|
|
|
|
- peer0.org1.example.com
|
|
|
|
- orderer.example.com
|
2017-09-01 20:09:18 +08:00
|
|
|
|
2017-10-05 23:21:54 +08:00
|
|
|
# ZooKeeper services, at least 3 nodes
|
|
|
|
zookeeper0:
|
|
|
|
extends:
|
2018-01-03 21:19:09 +08:00
|
|
|
file: base-kafka.yaml
|
2017-10-05 23:21:54 +08:00
|
|
|
service: zookeeper0
|
|
|
|
|
|
|
|
zookeeper1:
|
|
|
|
extends:
|
2018-01-03 21:19:09 +08:00
|
|
|
file: base-kafka.yaml
|
2017-10-05 23:21:54 +08:00
|
|
|
service: zookeeper1
|
|
|
|
|
|
|
|
zookeeper2:
|
|
|
|
extends:
|
2018-01-03 21:19:09 +08:00
|
|
|
file: base-kafka.yaml
|
2017-10-05 23:21:54 +08:00
|
|
|
service: zookeeper2
|
|
|
|
|
|
|
|
# Kafka services, at least 4 node to tolerant work with 1 node failure
|
|
|
|
kafka0:
|
|
|
|
extends:
|
2018-01-03 21:19:09 +08:00
|
|
|
file: base-kafka.yaml
|
2017-10-05 23:21:54 +08:00
|
|
|
service: kafka0
|
|
|
|
depends_on:
|
|
|
|
- zookeeper0
|
|
|
|
- zookeeper1
|
|
|
|
- zookeeper2
|
|
|
|
|
|
|
|
kafka1:
|
|
|
|
extends:
|
2018-01-03 21:19:09 +08:00
|
|
|
file: base-kafka.yaml
|
2017-10-05 23:21:54 +08:00
|
|
|
service: kafka1
|
|
|
|
depends_on:
|
|
|
|
- zookeeper0
|
|
|
|
- zookeeper1
|
|
|
|
- zookeeper2
|
|
|
|
|
|
|
|
kafka2:
|
|
|
|
extends:
|
2018-01-03 21:19:09 +08:00
|
|
|
file: base-kafka.yaml
|
2017-10-05 23:21:54 +08:00
|
|
|
service: kafka2
|
|
|
|
depends_on:
|
|
|
|
- zookeeper0
|
|
|
|
- zookeeper1
|
|
|
|
- zookeeper2
|
|
|
|
|
|
|
|
kafka3:
|
|
|
|
extends:
|
2018-01-03 21:19:09 +08:00
|
|
|
file: base-kafka.yaml
|
2017-10-05 23:21:54 +08:00
|
|
|
service: kafka3
|
|
|
|
depends_on:
|
|
|
|
- zookeeper0
|
|
|
|
- zookeeper1
|
|
|
|
- zookeeper2
|
2017-09-01 20:09:18 +08:00
|
|
|
|
|
|
|
#networks:
|
|
|
|
# default:
|
|
|
|
# external:
|
|
|
|
# name: hyperledger_fabric
|