-
Notifications
You must be signed in to change notification settings - Fork 6
/
compose-codaptor.yml
98 lines (98 loc) · 4.48 KB
/
compose-codaptor.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
# use docker-compose up -d to start the network
# version 3 does not support setting memory limits for docker-compose
version: '2'
services:
codaptora:
image: b180tech/cordaptor:0.4.1-corda4.7
hostname: codaptora
mem_limit: 512m
environment:
- CORDA_RPC_NODE_ADDRESS=host-node:10005 # using hostname known within the Docker network
- CORDA_RPC_USERNAME=user1 # this must match build.gradle
- CORDA_RPC_PASSWORD=test # this must match build.gradle
# we must override Cordaptor's default of binding to the loopback interface,
# because we want its port to be visible on the Docker network
- CORDAPTOR_API_LISTEN_ADDRESS=0.0.0.0:8500
# this is necessary to allow Cordaptor to generate URLs (e.g. for OpenAPI bindings or Location headers)
# using URL resolvable outside the Docker network
- CORDAPTOR_API_EXTERNAL_ADDRESS=localhost:9500 # this must be consistent with the ports directive below
ports:
- "9500:8500"
- "9008:8008"
volumes:
# Corda RPC requires CorDapp JARs to be available in the classpath
- ./protocolAggregator/build/nodes/Host/cordapps:/cordaptor/cordapps
codaptorb:
image: b180tech/cordaptor:0.4.1-corda4.7
hostname: codaptorb
mem_limit: 512m
environment:
- CORDA_RPC_NODE_ADDRESS=providerb-node:10007 # using hostname known within the Docker network
- CORDA_RPC_USERNAME=user1 # this must match build.gradle
- CORDA_RPC_PASSWORD=test # this must match build.gradle
# we must override Cordaptor's default of binding to the loopback interface,
# because we want its port to be visible on the Docker network
- CORDAPTOR_API_LISTEN_ADDRESS=0.0.0.0:8500
# this is necessary to allow Cordaptor to generate URLs (e.g. for OpenAPI bindings or Location headers)
# using URL resolvable outside the Docker network
- CORDAPTOR_API_EXTERNAL_ADDRESS=localhost:7500 # this must be consistent with the ports directive below
ports:
- "7500:8500"
- "7008:8008"
volumes:
# Corda RPC requires CorDapp JARs to be available in the classpath
- ./protocolAggregator/build/nodes/ProviderB/cordapps:/cordaptor/cordapps
codaptord:
image: b180tech/cordaptor:0.4.1-corda4.7
hostname: codaptord
mem_limit: 512m
environment:
- CORDA_RPC_NODE_ADDRESS=providerd-node:10012 # using hostname known within the Docker network
- CORDA_RPC_USERNAME=user1 # this must match build.gradle
- CORDA_RPC_PASSWORD=test # this must match build.gradle
# we must override Cordaptor's default of binding to the loopback interface,
# because we want its port to be visible on the Docker network
- CORDAPTOR_API_LISTEN_ADDRESS=0.0.0.0:8500
# this is necessary to allow Cordaptor to generate URLs (e.g. for OpenAPI bindings or Location headers)
# using URL resolvable outside the Docker network
- CORDAPTOR_API_EXTERNAL_ADDRESS=localhost:7500 # this must be consistent with the ports directive below
ports:
- "5500:8500"
- "5008:8008"
volumes:
# Corda RPC requires CorDapp JARs to be available in the classpath
- ./protocolAggregator/build/nodes/ProviderD/cordapps:/cordaptor/cordapps
codaptorc:
image: b180tech/cordaptor:0.4.1-corda4.7
hostname: codaptorc
mem_limit: 512m
environment:
- CORDA_RPC_NODE_ADDRESS=consumerc-node:10009 # using hostname known within the Docker network
- CORDA_RPC_USERNAME=user1 # this must match build.gradle
- CORDA_RPC_PASSWORD=test # this must match build.gradle
# we must override Cordaptor's default of binding to the loopback interface,
# because we want its port to be visible on the Docker network
- CORDAPTOR_API_LISTEN_ADDRESS=0.0.0.0:8500
# this is necessary to allow Cordaptor to generate URLs (e.g. for OpenAPI bindings or Location headers)
# using URL resolvable outside the Docker network
- CORDAPTOR_API_EXTERNAL_ADDRESS=localhost:6500 # this must be consistent with the ports directive below
ports:
- "6500:8500"
- "6008:8008"
volumes:
# Corda RPC requires CorDapp JARs to be available in the classpath
- ./protocolAggregator/build/nodes/ConsumerC/cordapps:/cordaptor/cordapps
web:
build:
context: .
dockerfile: 180Dashboard/Dockerfile
environment:
- NODE_ENV=development
command: npm start
stdin_open: true
tty: true
ports:
- "3000:3000"
volumes:
- "./180Dashboard:/app"
- "/app/node_modules/"