docker-compose-files/hyperledger_fabric/latest/docker-compose-2orgs-4peers...

74 lines
1.5 KiB
YAML
Raw Normal View History

2017-11-02 10:29:33 +08:00
# https://github.com/yeasy/docker-compose-files/tree/master/hyperledger
# This compose file will start a Hyperledger Fabric 1.0 MVE, including
# * 2 ca (not in use now)
# * 1 orderer
# * 4 peers in 2 orgs
# * cli for testing
version: '2.0'
services:
# ca.org1.example.com:
# extends:
# file: base-solo.yaml
# service: ca.org1.example.com
# ca.org2.example.com:
# extends:
# file: base-solo.yaml
# service: ca.org2.example.com
cli:
extends:
file: base-solo.yaml
service: cli
2018-10-11 22:29:09 +08:00
orderer0.example.com: # There can be multiple orderers
2017-11-02 10:29:33 +08:00
extends:
file: base-solo.yaml
2018-10-11 22:29:09 +08:00
service: orderer0.example.com
2017-11-02 10:29:33 +08:00
peer0.org1.example.com:
extends:
file: base-solo.yaml
service: peer0.org1.example.com
2018-10-12 11:33:24 +08:00
depends_on:
- orderer0.example.com
2017-11-02 10:29:33 +08:00
peer1.org1.example.com:
extends:
file: base-solo.yaml
service: peer1.org1.example.com
2018-10-12 11:33:24 +08:00
depends_on:
- orderer0.example.com
2017-11-02 10:29:33 +08:00
peer0.org2.example.com:
extends:
file: base-solo.yaml
service: peer0.org2.example.com
2018-10-12 11:33:24 +08:00
depends_on:
- orderer0.example.com
2017-11-02 10:29:33 +08:00
peer1.org2.example.com:
extends:
file: base-solo.yaml
service: peer1.org2.example.com
2018-10-12 11:33:24 +08:00
depends_on:
- orderer0.example.com
2017-11-02 10:29:33 +08:00
2019-01-09 17:08:03 +08:00
prometheus:
extends:
file: base-solo.yaml
service: prometheus
depends_on:
- orderer0.example.com
- peer0.org1.example.com
- peer1.org1.example.com
- peer0.org2.example.com
- peer1.org2.example.com
2017-11-02 10:29:33 +08:00
#networks:
# default:
# external:
# name: hyperledger_fabric