This repository has been archived by the owner on Feb 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
63 lines (58 loc) · 1.84 KB
/
docker-compose.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
version: "3.8"
services:
consumer:
image: openjdk:17-jdk-slim-buster
environment:
OTEL_SERVICE_NAME: consumer
OTEL_TRACES_EXPORTER: jaeger
OTEL_EXPORTER_JAEGER_ENDPOINT: http://jaeger:14250
OTEL_METRICS_EXPORTER: prometheus
WEB_HTTP_PORT: 9191
WEB_HTTP_PATH: /api
WEB_HTTP_DATA_PORT: 9192
WEB_HTTP_DATA_PATH: /api/v1/data
WEB_HTTP_IDS_PORT: 9292
WEB_HTTP_IDS_PATH: /api/v1/ids
IDS_WEBHOOK_ADDRESS: http://consumer:9292
EDC_API_AUTH_KEY: password
volumes:
- ../:/samples
ports:
- "9191:9191"
- "9192:9192"
entrypoint: java
-javaagent:/samples/04.3-open-telemetry/opentelemetry-javaagent.jar
-Djava.util.logging.config.file=/samples/04.3-open-telemetry/logging.properties
-jar /samples/04.3-open-telemetry/consumer/build/libs/consumer.jar
provider:
image: openjdk:17-jdk-slim-buster
environment:
OTEL_SERVICE_NAME: provider
OTEL_TRACES_EXPORTER: jaeger
OTEL_EXPORTER_JAEGER_ENDPOINT: http://jaeger:14250
WEB_HTTP_PORT: 8181
WEB_HTTP_PATH: /api
WEB_HTTP_DATA_PORT: 8182
WEB_HTTP_DATA_PATH: /api/v1/data
IDS_WEBHOOK_ADDRESS: http://provider:8282
EDC_SAMPLES_04_ASSET_PATH: /samples/04.3-open-telemetry/input-file.txt
volumes:
- ../:/samples
ports:
- "8181:8181"
- "8182:8182"
entrypoint: java
-javaagent:/samples/04.3-open-telemetry/opentelemetry-javaagent.jar
-Djava.util.logging.config.file=/samples/04.3-open-telemetry/logging.properties
-jar /samples/04.3-open-telemetry/provider/build/libs/provider.jar
jaeger:
image: jaegertracing/all-in-one
ports:
- 16686:16686
prometheus:
image: prom/prometheus:v2.30.3
container_name: prometheus
volumes:
- ./prometheus/:/etc/prometheus/
ports:
- 9090:9090