|
|
@ -0,0 +1,22 @@ |
|
|
|
version: '3.4' |
|
|
|
|
|
|
|
# The OpenTelemetry docker-compose file is used to configure OpenTelemetry for the services |
|
|
|
# |
|
|
|
# You need to start it with the following CLI command: |
|
|
|
# docker-compose -f docker-compose.yml -f docker-compose.override.yml -f docker-compose.opentelemetry.zipkin.yml up |
|
|
|
|
|
|
|
services: |
|
|
|
zipkin: |
|
|
|
image: openzipkin/zipkin:latest |
|
|
|
ports: |
|
|
|
- "9411:9411" |
|
|
|
|
|
|
|
basket-api: |
|
|
|
environment: |
|
|
|
- OTEL_USE_EXPORTER=zipkin |
|
|
|
- OTEL_EXPORTER_ZIPKIN_ENDPOINT=${OTEL_EXPORTER_ZIPKIN_ENDPOINT:-http://zipkin:9411/api/v2/spans} |
|
|
|
|
|
|
|
webmvc: |
|
|
|
environment: |
|
|
|
- OTEL_USE_EXPORTER=zipkin |
|
|
|
- OTEL_EXPORTER_ZIPKIN_ENDPOINT=${OTEL_EXPORTER_ZIPKIN_ENDPOINT:-http://zipkin:9411/api/v2/spans} |