-
Notifications
You must be signed in to change notification settings - Fork 6
/
compose-corda-network.yml
126 lines (126 loc) · 8.07 KB
/
compose-corda-network.yml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# use docker-compose up -d to start the network
# version 3 does not support setting memory limits for docker-compose
version: '2'
services:
notary-node:
image: corda/corda-zulu-java1.8-4.7:latest
# hostnames need to be the same as in build.gradle, because they are baked into nodeInfo files
hostname: notary-node
mem_limit: 1g
expose:
- 10002 # p2p port
- 10003 # Corda RPC port, map to a host port using ports directive if Corda shell access is required
volumes:
- ./protocolAggregator/build/nodes/Notary/certificates:/opt/corda/certificates
- ./protocolAggregator/build/nodes/runnodes:/opt/corda/runnodes
- ./protocolAggregator/build/nodes/Notary/corda.jar:/opt/corda/corda.jar
- ./protocolAggregator/build/nodes/Notary/cordapps:/opt/corda/cordapps
- ./protocolAggregator/build/nodes/Notary/etc:/etc/corda
- ./protocolAggregator/build/nodes/Notary/network-parameters:/opt/corda/network-parameters
- ./protocolAggregator/build/nodes/Notary/logs:/opt/corda/logs
- ./protocolAggregator/build/nodes/Notary/drivers:/opt/corda/drivers
- ./protocolAggregator/build/nodes/Notary/persistence:/opt/corda/persistence
- ./protocolAggregator/build/nodes/Notary/additional-node-infos:/opt/corda/additional-node-infos
# the following makes deployNode dir layout compatible with the expectations of the docker image
- ./protocolAggregator/build/nodes/Notary/persistence.mv.db:/opt/corda/persistence/persistence.mv.db
- ./protocolAggregator/build/nodes/Notary/persistence.trace.db:/opt/corda/persistence/persistence.trace.db
- ./protocolAggregator/build/nodes/Notary/node.conf:/opt/corda/node.conf
command: /opt/corda/runnodes
host-node:
image: corda/corda-zulu-java1.8-4.7:latest
# hostnames need to be the same as in build.gradle, because they are baked into nodeInfo files
hostname: host-node
mem_limit: 1g
expose:
- 10004 # p2p port
- 10005 # Corda RPC port, map to a host port using ports directive if Corda shell access is required
volumes:
- ./protocolAggregator/build/nodes/Host/certificates:/opt/corda/certificates
- ./protocolAggregator/build/nodes/runnodes:/opt/corda/runnodes
- ./protocolAggregator/build/nodes/Host/corda.jar:/opt/corda/corda.jar
- ./protocolAggregator/build/nodes/Host/cordapps:/opt/corda/cordapps
- ./protocolAggregator/build/nodes/Host/etc:/etc/corda
- ./protocolAggregator/build/nodes/Host/network-parameters:/opt/corda/network-parameters
- ./protocolAggregator/build/nodes/Host/logs:/opt/corda/logs
- ./protocolAggregator/build/nodes/Host/drivers:/opt/corda/drivers
- ./protocolAggregator/build/nodes/Host/persistence:/opt/corda/persistence
- ./protocolAggregator/build/nodes/Host/additional-node-infos:/opt/corda/additional-node-infos
# the following makes deployNode dir layout compatible with the expectations of the docker image
- ./protocolAggregator/build/nodes/Host/persistence.mv.db:/opt/corda/persistence/persistence.mv.db
- ./protocolAggregator/build/nodes/Host/persistence.trace.db:/opt/corda/persistence/persistence.trace.db
- ./protocolAggregator/build/nodes/Host/node.conf:/opt/corda/node.conf
command: /opt/corda/runnodes
providerb-node:
image: corda/corda-zulu-java1.8-4.7:latest
# hostnames need to be the same as in build.gradle, because they are baked into nodeInfo files
hostname: providerb-node
mem_limit: 1g
expose:
- 10006 # p2p port
- 10007 # Corda RPC port, map to a host port using ports directive if Corda shell access is required
volumes:
- ./protocolAggregator/build/nodes/ProviderB/certificates:/opt/corda/certificates
- ./protocolAggregator/build/nodes/runnodes:/opt/corda/runnodes
- ./protocolAggregator/build/nodes/ProviderB/corda.jar:/opt/corda/corda.jar
- ./protocolAggregator/build/nodes/ProviderB/cordapps:/opt/corda/cordapps
- ./protocolAggregator/build/nodes/ProviderB/etc:/etc/corda
- ./protocolAggregator/build/nodes/ProviderB/network-parameters:/opt/corda/network-parameters
- ./protocolAggregator/build/nodes/ProviderB/logs:/opt/corda/logs
- ./protocolAggregator/build/nodes/ProviderB/drivers:/opt/corda/drivers
- ./protocolAggregator/build/nodes/ProviderB/persistence:/opt/corda/persistence
- ./protocolAggregator/build/nodes/ProviderB/additional-node-infos:/opt/corda/additional-node-infos
# the following makes deployNode dir layout compatible with the expectations of the docker image
- ./protocolAggregator/build/nodes/ProviderB/persistence.mv.db:/opt/corda/persistence/persistence.mv.db
- ./protocolAggregator/build/nodes/ProviderB/persistence.trace.db:/opt/corda/persistence/persistence.trace.db
- ./protocolAggregator/build/nodes/ProviderB/node.conf:/opt/corda/node.conf
command: /opt/corda/runnodes
providerd-node:
image: corda/corda-zulu-java1.8-4.7:latest
# hostnames need to be the same as in build.gradle, because they are baked into nodeInfo files
hostname: providerd-node
mem_limit: 1g
expose:
- 10011 # p2p port
- 10012 # Corda RPC port, map to a host port using ports directive if Corda shell access is required
volumes:
- ./protocolAggregator/build/nodes/ProviderD/certificates:/opt/corda/certificates
- ./protocolAggregator/build/nodes/runnodes:/opt/corda/runnodes
- ./protocolAggregator/build/nodes/ProviderD/corda.jar:/opt/corda/corda.jar
- ./protocolAggregator/build/nodes/ProviderD/cordapps:/opt/corda/cordapps
- ./protocolAggregator/build/nodes/ProviderD/etc:/etc/corda
- ./protocolAggregator/build/nodes/ProviderD/network-parameters:/opt/corda/network-parameters
- ./protocolAggregator/build/nodes/ProviderD/logs:/opt/corda/logs
- ./protocolAggregator/build/nodes/ProviderD/drivers:/opt/corda/drivers
- ./protocolAggregator/build/nodes/ProviderD/persistence:/opt/corda/persistence
- ./protocolAggregator/build/nodes/ProviderD/additional-node-infos:/opt/corda/additional-node-infos
# the following makes deployNode dir layout compatible with the expectations of the docker image
- ./protocolAggregator/build/nodes/ProviderD/persistence.mv.db:/opt/corda/persistence/persistence.mv.db
- ./protocolAggregator/build/nodes/ProviderD/persistence.trace.db:/opt/corda/persistence/persistence.trace.db
- ./protocolAggregator/build/nodes/ProviderD/node.conf:/opt/corda/node.conf
command: /opt/corda/runnodes
consumerc-node:
image: corda/corda-zulu-java1.8-4.7:latest
# hostnames need to be the same as in build.gradle, because they are baked into nodeInfo files
hostname: consumerc-node
mem_limit: 1g
expose:
- 10008 # p2p port
- 10009 # Corda RPC port, map to a host port using ports directive if Corda shell access is required
volumes:
- ./protocolAggregator/build/nodes/ConsumerC/certificates:/opt/corda/certificates
- ./protocolAggregator/build/nodes/runnodes:/opt/corda/runnodes
- ./protocolAggregator/build/nodes/ConsumerC/corda.jar:/opt/corda/corda.jar
- ./protocolAggregator/build/nodes/ConsumerC/cordapps:/opt/corda/cordapps
- ./protocolAggregator/build/nodes/ConsumerC/etc:/etc/corda
- ./protocolAggregator/build/nodes/ConsumerC/network-parameters:/opt/corda/network-parameters
- ./protocolAggregator/build/nodes/ConsumerC/logs:/opt/corda/logs
- ./protocolAggregator/build/nodes/ConsumerC/drivers:/opt/corda/drivers
- ./protocolAggregator/build/nodes/ConsumerC/persistence:/opt/corda/persistence
- ./protocolAggregator/build/nodes/ConsumerC/additional-node-infos:/opt/corda/additional-node-infos
# the following makes deployNode dir layout compatible with the expectations of the docker image
- ./protocolAggregator/build/nodes/ConsumerC/persistence.mv.db:/opt/corda/persistence/persistence.mv.db
- ./protocolAggregator/build/nodes/ConsumerC/persistence.trace.db:/opt/corda/persistence/persistence.trace.db
- ./protocolAggregator/build/nodes/ConsumerC/node.conf:/opt/corda/node.conf
command: /opt/corda/runnodes
ports:
- "5005:5005"