-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-dev.yaml
330 lines (326 loc) · 14.4 KB
/
docker-compose-dev.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
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
version: "3.8"
services:
connector-1:
container_name: connector-1
build:
context: EDC-Blockchain-Catalog
dockerfile: launchers/edc-tu-berlin/Dockerfile_consumer
volumes:
- ./:/open-telemetry
ports:
- "8181:8181"
- "8182:8182"
- "8282:8282"
- "8183:8183"
- "8184:8184"
- "8185:8185"
environment:
OTEL_SERVICE_NAME: connector-1
OTEL_TRACES_EXPORTER: jaeger
OTEL_JAVAAGENT_EXTENSIONS: opentelemetry-exporter-jaeger.jar
OTEL_EXPORTER_JAEGER_ENDPOINT: http://jaeger:14250
OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318
OTEL_METRICS_EXPORTER: none
OTEL_EXPORTER_OTLP_METRICS_ENDPOINT: http://jaeger:4318
OTEL_LOGS_EXPORTER: logging
OTEL_INSTRUMENTATION_JDBC_ENABLED: false
EDC_BLOCKCHAIN_INTERFACE_URL: "http://edc-interface-1:3000"
IDS_WEBHOOK_ADDRESS: "http://connector-1:8282"
WEB_HTTP_PORT: "8181"
WEB_HTTP_PATH: "/api"
WEB_HTTP_PROTOCOL_PORT: 8184
WEB_HTTP_PROTOCOL_PATH: "/protocol"
WEB_HTTP_MANAGEMENT_PORT: "8182"
WEB_HTTP_MANAGEMENT_PATH: "/management"
WEB_HTTP_CONTROL_PORT: 8183
WEB_HTTP_CONTROL_PATH: "/control"
WEB_HTTP_PUBLIC_PORT: 8185
WEB_HTTP_PUBLIC_PATH: "/public"
EDC_API_AUTH_KEY: "password"
EDC_WEB_REST_CORS_ENABLED: "true"
EDC_WEB_REST_CORS_HEADERS: "*"
EDC_WEB_REST_CORS_ORIGINS: "*"
EDC_WEB_REST_CORS_METHODS: "GET, POST, DELETE, PUT, OPTIONS"
EDC_RECEIVER_HTTP_ENDPOINT: "http://http-push-backend-services:4000/receiver/urn:connector:provider/callback"
EDC_DATAPLACE_TOKEN_VALIDATION_ENDPOINT: "http://connector-1:8183/control/token"
EDC_HOSTNAME: "connector-1"
EDC_DSP_CALLBACK_ADDRESS: "http://connector-1:8184/protocol"
EDC_DATASOURCE_ASSET_NAME: default
EDC_DATASOURCE_POLICY_NAME: default
EDC_DATASOURCE_CONTRACTDEFINITION_NAME: default
EDC_DATASOURCE_CONTRACTNEGOTIATION_NAME: default
EDC_DATASOURCE_TRANSFERPROCESS_NAME: default
EDC_DATASOURCE_DEFAULT_URL: jdbc:postgresql://postgres-connector-1:5432/connector?user=connector&password=password
EDC_DATASOURCE_ASSET_URL: jdbc:postgresql://postgres-connector-1:5432/connector?user=connector&password=password
EDC_DATASOURCE_POLICY_URL: jdbc:postgresql://postgres-connector-1:5432/connector?user=connector&password=password
EDC_DATASOURCE_CONTRACTDEFINITION_URL: jdbc:postgresql://postgres-connector-1:5432/connector?user=connector&password=password
EDC_DATASOURCE_CONTRACTNEGOTIATION_URL: jdbc:postgresql://postgres-connector-1:5432/connector?user=connector&password=password
EDC_DATASOURCE_TRANSFERPROCESS_URL: jdbc:postgresql://postgres-connector-1:5432/connector?user=connector&password=password
EDC_OAUTH_TOKEN_URL: https://ssi-to-oidc-bridge-hydra.gxfs.gx4fm.org/oauth2/token
EDC_OAUTH_CERTIFICATE_ALIAS: 1
EDC_OAUTH_PRIVATE_KEY_ALIAS: 1
EDC_OAUTH_CLIENT_ID: 1bb53adb-61d0-441e-91d5-7aa62531593f
EDC_OAUTH_PROVIDER_JWKS_URL: https://ssi-to-oidc-bridge-hydra.gxfs.gx4fm.org/.well-known/jwks.json
CCP_INTERFACE_URL: https://claim-compliance-provider.gxfs.gx4fm.org/v1/send-claims
entrypoint: java
-javaagent:/opentelemetry-javaagent.jar
-Djava.util.logging.config.file=/open-telemetry/resources/logging.properties
-Dedc.fs.config=config.properties
-Dedc.keystore=cert.pfx
-Dedc.keystore.password=123456
-Dedc.vault=vault.properties
-jar app.jar
edc-interface-1:
container_name: edc-interface-1
build:
context: EDC-Blockchain-Interface
dockerfile: Dockerfile
#image: julianlegler/edc_blockchain_interface:0.2.2
ports:
- "3000:3000"
environment:
PINATA_KEY: "${PINATA_KEY}"
OTEL_TRACES_EXPORTER: otlp
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT: http://jaeger:4318/v1/traces
NODE_OPTIONS: "--require @opentelemetry/auto-instrumentations-node/register"
OTEL_SERVICE_NAME: edc-interface-1
OTEL_NODE_ENABLED_INSTRUMENTATIONS: "http,express,dns,grpc" #removed fs,net because it is spammy
#demo
#ASSET_ADDRESS: "KT1F8fKCkcseDMetbMCkmhgfZBWyQijj69aA"
#POLICY_ADDRESS: "KT1KAbNjW3LX9Naa3koJSr6dN1YEQJ4Zwc1k"
#CONTRACT_ADDRESS: "KT1U4tQpYzSCq7HPUTx8q5qMWMtNvqC5zJRp"
#TRANSFER_ADDRESS: "KT1SgL6QbTTRGwp958YcdeVztgatsryS2CGb"
#AGREEMENT_ADDRESS: "KT19dNiYWs36qB6YUUa3q747SX3YjKGK3Z4r"
#dev
ASSET_ADDRESS: "KT1N3iJne4jFnQz4tdHBz5q7Cd8Wmd6XtZSH"
POLICY_ADDRESS: "KT1J7FvNLo2yQSUm7jcm2wzNHDBhR19Y5dJ9"
CONTRACT_ADDRESS: "KT1QDheV2TkL3mitzYNKzunWYhSe6MmEPTh5"
TRANSFER_ADDRESS: "KT18pEHAbmtGj9iYQAJNhN2CtzjBGf4zBxKX"
AGREEMENT_ADDRESS: "KT1CHo3f2eWcnT7zCYs1KD1ERVXwEPYacj3A"
VERIFIABLE_CREDENTIALS_ADDRESS: "KT1XgUq6rzN9q6YMh44TbLffEz3zb54HbY2H"
TOKEN_LIMIT: 1000
SD_CREATOR_URL: tu-berlin.sd-creator.gxfs.gx4fm.org/vp-from-claims
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# - //usr/bin/docker:/usr/bin/docker
data-dashboard-1:
container_name: data-dashboard-1
build:
context: EDC-Blockchain-Dashboard
dockerfile: Dockerfile
ports:
- "5500:80"
environment:
COMMENT: "This file will be replaced at runtime when deployed to the cloud"
DATA_MANAGEMENT_URL: "http://localhost:8182/management" # TODO: unsolvable CORS problems when trying to connect to connector-2:9192 instead of localhost:9192 - is it a docker network issue because it uses the address for external and docker internal requests?
CATALOG_URL: "http://localhost:8181/api" # TODO: unsolvable CORS problems when trying to connect to connector-2:9192 instead of localhost:9192 - is it a docker network issue because it uses the address for external and docker internal requests?
STORAGE_ACCOUNT: "company1assets"
STORAGE_EXPLORER_LINK_TEMPLATE: "storageexplorer://v:1"
API_KEY: "password"
THEME: "theme-1"
OTEL_TRACES_EXPORTER: otlp
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT: http://jaeger:14250
connector-2:
container_name: connector-2
build:
context: EDC-Blockchain-Catalog
dockerfile: launchers/edc-tu-berlin/Dockerfile_provider
volumes:
- ./:/open-telemetry
ports:
- "9191:9191"
- "9192:9192"
- "9292:9292"
- "9193:9193"
- "9194:9194"
- "9195:9195"
environment:
OTEL_SERVICE_NAME: connector-2
OTEL_TRACES_EXPORTER: jaeger
OTEL_JAVAAGENT_EXTENSIONS: opentelemetry-exporter-jaeger.jar
OTEL_EXPORTER_JAEGER_ENDPOINT: http://jaeger:14250
OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4318
OTEL_METRICS_EXPORTER: none
OTEL_EXPORTER_OTLP_METRICS_ENDPOINT: http://jaeger:4318
OTEL_LOGS_EXPORTER: logging
OTEL_INSTRUMENTATION_JDBC_ENABLED: false
OTEL_INSTRUMENTATION_COMMON_EXPERIMENTAL_CONTROLLER_TELEMETRY_ENABLED: true
EDC_BLOCKCHAIN_INTERFACE_URL: "http://edc-interface-2:3000"
IDS_WEBHOOK_ADDRESS: "http://connector-2:9292"
WEB_HTTP_PORT: "9191"
WEB_HTTP_PATH: "/api"
WEB_HTTP_PROTOCOL_PORT: 9194
WEB_HTTP_PROTOCOL_PATH: "/protocol"
WEB_HTTP_MANAGEMENT_PORT: "9192"
WEB_HTTP_MANAGEMENT_PATH: "/management"
WEB_HTTP_CONTROL_PORT: 9193
WEB_HTTP_CONTROL_PATH: "/control"
WEB_HTTP_PUBLIC_PORT: 9195
WEB_HTTP_PUBLIC_PATH: "/public"
EDC_API_AUTH_KEY: "password"
EDC_WEB_REST_CORS_ENABLED: "true"
EDC_WEB_REST_CORS_HEADERS: "*"
EDC_WEB_REST_CORS_ORIGINS: "*"
EDC_WEB_REST_CORS_METHODS: "GET, POST, DELETE, PUT, OPTIONS"
EDC_RECEIVER_HTTP_ENDPOINT: "http://http-push-backend-services:4000/receiver/urn:connector:provider/callback"
EDC_DATAPLACE_TOKEN_VALIDATION_ENDPOINT: "http://connector-2:9193/control/token"
EDC_HOSTNAME: "connector-2"
EDC_DSP_CALLBACK_ADDRESS: "http://connector-2:9194/protocol"
EDC_DATASOURCE_ASSET_NAME: default
EDC_DATASOURCE_POLICY_NAME: default
EDC_DATASOURCE_CONTRACTDEFINITION_NAME: default
EDC_DATASOURCE_CONTRACTNEGOTIATION_NAME: default
EDC_DATASOURCE_TRANSFERPROCESS_NAME: default
EDC_DATASOURCE_DEFAULT_URL: jdbc:postgresql://postgres-connector-2:5432/connector?user=connector&password=password
EDC_DATASOURCE_ASSET_URL: jdbc:postgresql://postgres-connector-2:5432/connector?user=connector&password=password
EDC_DATASOURCE_POLICY_URL: jdbc:postgresql://postgres-connector-2:5432/connector?user=connector&password=password
EDC_DATASOURCE_CONTRACTDEFINITION_URL: jdbc:postgresql://postgres-connector-2:5432/connector?user=connector&password=password
EDC_DATASOURCE_CONTRACTNEGOTIATION_URL: jdbc:postgresql://postgres-connector-2:5432/connector?user=connector&password=password
EDC_DATASOURCE_TRANSFERPROCESS_URL: jdbc:postgresql://postgres-connector-2:5432/connector?user=connector&password=password
EDC_OAUTH_TOKEN_URL: https://ssi-to-oidc-bridge-hydra.gxfs.gx4fm.org/oauth2/token
EDC_OAUTH_CERTIFICATE_ALIAS: 1
EDC_OAUTH_PRIVATE_KEY_ALIAS: 1
EDC_OAUTH_CLIENT_ID: ffa15c1e-9752-4251-bade-40637e854779
EDC_OAUTH_PROVIDER_JWKS_URL: https://ssi-to-oidc-bridge-hydra.gxfs.gx4fm.org/.well-known/jwks.json
entrypoint: java
-javaagent:/opentelemetry-javaagent.jar
-Djava.util.logging.config.file=/open-telemetry/resources/logging.properties
-Dedc.fs.config=config.properties
-Dedc.keystore=cert.pfx
-Dedc.keystore.password=123456
-Dedc.vault=vault.properties
-jar app.jar
edc-interface-2:
container_name: edc-interface-2
build:
context: EDC-Blockchain-Interface
dockerfile: Dockerfile
#image: julianlegler/edc_blockchain_interface:0.2.2
environment:
PINATA_KEY: "${PINATA_KEY}"
OTEL_TRACES_EXPORTER: otlp
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT: http://jaeger:4318/v1/traces
NODE_OPTIONS: "--require @opentelemetry/auto-instrumentations-node/register"
OTEL_SERVICE_NAME: edc-interface-2
OTEL_NODE_ENABLED_INSTRUMENTATIONS: "http,express,dns,grpc" #removed fs,net because it is spammy
#demo
#ASSET_ADDRESS: "KT1F8fKCkcseDMetbMCkmhgfZBWyQijj69aA"
#POLICY_ADDRESS: "KT1KAbNjW3LX9Naa3koJSr6dN1YEQJ4Zwc1k"
#CONTRACT_ADDRESS: "KT1U4tQpYzSCq7HPUTx8q5qMWMtNvqC5zJRp"
#TRANSFER_ADDRESS: "KT1SgL6QbTTRGwp958YcdeVztgatsryS2CGb"
#AGREEMENT_ADDRESS: "KT19dNiYWs36qB6YUUa3q747SX3YjKGK3Z4r"
#dev
ASSET_ADDRESS: "KT1N3iJne4jFnQz4tdHBz5q7Cd8Wmd6XtZSH"
POLICY_ADDRESS: "KT1J7FvNLo2yQSUm7jcm2wzNHDBhR19Y5dJ9"
CONTRACT_ADDRESS: "KT1QDheV2TkL3mitzYNKzunWYhSe6MmEPTh5"
TRANSFER_ADDRESS: "KT18pEHAbmtGj9iYQAJNhN2CtzjBGf4zBxKX"
AGREEMENT_ADDRESS: "KT1CHo3f2eWcnT7zCYs1KD1ERVXwEPYacj3A"
VERIFIABLE_CREDENTIALS_ADDRESS: "KT1XgUq6rzN9q6YMh44TbLffEz3zb54HbY2H"
TOKEN_LIMIT: 1000
SD_CREATOR_URL: tu-berlin.sd-creator.gxfs.gx4fm.org/vp-from-claims
data-dashboard-2:
container_name: data-dashboard-2
build:
context: EDC-Blockchain-Dashboard
dockerfile: Dockerfile
ports:
- "5502:80"
environment:
COMMENT: "This file will be replaced at runtime when deployed to the cloud"
DATA_MANAGEMENT_URL: "http://localhost:9192/management" # TODO: unsolvable CORS problems when trying to connect to connector-2:9192 instead of localhost:9192 - is it a docker network issue because it uses the address for external and docker internal requests?
CATALOG_URL: "http://localhost:9191/api" # TODO: unsolvable CORS problems when trying to connect to connector-2:9192 instead of localhost:9192 - is it a docker network issue because it uses the address for external and docker internal requests?
STORAGE_ACCOUNT: "company1assets"
STORAGE_EXPLORER_LINK_TEMPLATE: "storageexplorer://v:1"
API_KEY: "password"
THEME: "theme-2"
OTEL_TRACES_EXPORTER: otlp
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT: http://jaeger:14250
# azurite:
# container_name: azurite
# image: mcr.microsoft.com/azure-storage/azurite
# ports:
# - 10000:10000
# environment:
# AZURITE_ACCOUNTS: company1assets:key1;company2assets:key2;company3assets:key3
http-push-backend-services:
container_name: http-push-backend-services
build:
context: EDC-Blockchain-Catalog
dockerfile: launchers/push-http-backend/Dockerfile
#image: julianlegler/edc_blockchain_transfer:0.2.0
ports:
- "4000:4000"
volumes:
- ./container-data:/data
edc_blockchain_listener:
container_name: edc_blockchain_listener
# image: sonak53/edc_blockchain_listener:latest # Use this if you dont have the needed credentials to build it yourself
build:
context: blockchain-listener
dockerfile: Dockerfile
# octez-node:
# container_name: octez-node-alpha
# image: tezos/tezos:latest
# hostname: octez-node
# command: octez-node
# ports:
# - 9732:9732
# - 8732:8732
# environment:
# NODE_HOST: octez-node
# PROTOCOL: alpha
# volumes:
# - ./node_data:/var/run/tezos/node
# - ./client_data:/var/run/tezos/client
# restart: on-failure
jaeger:
image: jaegertracing/all-in-one:1.58.0
user: root
ports:
- "16686:16686"
- "4318:4318"
environment:
SPAN_STORAGE_TYPE: badger
BADGER_EPHEMERAL: false
BADGER_DIRECTORY_VALUE: /badger/data
BADGER_DIRECTORY_KEY: /badger/key
volumes:
- ./badger:/badger
#prepare-data-dir:
# # Run this step as root so that we can change the directory owner.
# user: root
# image: jaegertracing/all-in-one:latest
# command: "mkdir -p /badger/data && touch /badger/data/.initialized && chown -R 10001:10001 /badger/data"
# volumes:
# - ./badger:/badger
prometheus:
image: prom/prometheus:v2.30.3
volumes:
- ./EDC-Blockchain-Catalog/compose/prometheus/:/etc/prometheus/
ports:
- "9090:9090"
postgres-connector-1:
container_name: postgres-connector-1
image: postgres:latest
environment:
POSTGRES_DB: connector
POSTGRES_USER: connector
POSTGRES_PASSWORD: password
volumes:
- postgres_data_1:/var/lib/postgresql/data
ports:
- "5433:5432"
postgres-connector-2:
container_name: postgres-connector-2
image: postgres:latest
environment:
POSTGRES_DB: connector
POSTGRES_USER: connector
POSTGRES_PASSWORD: password
volumes:
- postgres_data_2:/var/lib/postgresql/data
ports:
- "5434:5432"
volumes:
postgres_data_1:
postgres_data_2: