forked from yeasy/docker-compose-files
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-2orgs-4peers-event.yaml
59 lines (50 loc) · 1.27 KB
/
docker-compose-2orgs-4peers-event.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# 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