java-tutorials/spring-cloud-modules/spring-cloud-open-telemetry/docker-compose.yml

30 lines
626 B
YAML
Raw Normal View History

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:
image: otel/opentelemetry-collector:0.47.0
command: [ "--config=/etc/otel-collector-config.yml" ]
volumes:
- ./otel-config.yml:/etc/otel-collector-config.yml
ports:
- "4317:4317"
depends_on:
- jaeger-service