2023-02-06 14:01:12 -05:00
|
|
|
version: "4.0"
|
|
|
|
|
|
|
|
services:
|
|
|
|
product-service:
|
|
|
|
platform: linux/x86_64
|
|
|
|
build: spring-cloud-open-telemetry1/
|
|
|
|
ports:
|
|
|
|
- "8080:8080"
|
|
|
|
|
|
|
|
price-service:
|
|
|
|
platform: linux/x86_64
|
|
|
|
build: spring-cloud-open-telemetry2/
|
|
|
|
ports:
|
|
|
|
- "8081"
|
|
|
|
|
|
|
|
jaeger-service:
|
|
|
|
image: jaegertracing/all-in-one:latest
|
|
|
|
ports:
|
|
|
|
- "16686:16686"
|
|
|
|
- "14250"
|
|
|
|
|
|
|
|
collector:
|
2023-02-25 08:11:35 -05:00
|
|
|
image: otel/opentelemetry-collector:0.72.0
|
2023-02-06 14:01:12 -05:00
|
|
|
command: [ "--config=/etc/otel-collector-config.yml" ]
|
|
|
|
volumes:
|
|
|
|
- ./otel-config.yml:/etc/otel-collector-config.yml
|
|
|
|
ports:
|
|
|
|
- "4317:4317"
|
|
|
|
depends_on:
|
|
|
|
- jaeger-service
|