-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yaml
70 lines (51 loc) · 1.99 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
64
65
66
67
68
69
70
# docker-compose.yaml
#
# Aternity Tech-Community
# 104-opentelemetry-zipkin-nodejs-app
# version: 22.3.8
#
# Compose file to use with the cookbook 104
#
# Usage
# docker-compose up
#
# Example in Bash
# export ATERNITY_SAAS_SERVER_HOST="agents.apm.myaccount.aternity.com"
# export ATERNITY_CUSTOMER_ID="12341234-12341234-13241234"
# docker-compose up
#
# Example in PowerShell
# $env:ATERNITY_SAAS_SERVER_HOST="agents.apm.myaccount.aternity.com"
# $env:ATERNITY_CUSTOMER_ID="12341234-12341234-13241234"
# docker-compose up
version: "3.8"
services:
opentelemetry-collector:
# Aternity OpenTelemetry Collector
# https://hub.docker.com/r/aternity/apm-collector
image: registry.hub.docker.com/aternity/apm-collector:2022.4.0-4
container_name: aternity-opentelemetry-collector
environment:
SERVER_URL: "wss://${ATERNITY_SAAS_SERVER_HOST}/?RPM_AGENT_CUSTOMER_ID=${ATERNITY_CUSTOMER_ID}"
ports:
# Uncomment the telemetry protocol used by the application
# OpenTelemetry, https://opentelemetry.io
# - "4318:4318/tcp" # OpenTelemetry OTLP JSON/Protobuf over HTTP
# - "55681:55681/tcp" # OpenTelemetry OTLP JSON/Protobuf over HTTP
# - "4317:4317/tcp" # OpenTelemetry OTLP over gRPC
# Jaeger, https://www.jaegertracing.io
# - "14268:14268/tcp" # Jaeger Thrift Binary over HTTP
# - "6831:6831/udp" # Jaeger Thrift Compact
# - "6832:6832/udp" # Jaeger Thrift Binary
# Zipkin, https://zipkin.io
- "9411:9411/tcp" # Zipkin v2 json/protobuf and v1 json/thrift
# - "5775:5775/udp" # Jaeger's Thrift support for Zipkin v1
service104_js:
environment:
OTEL_EXPORTER_ZIPKIN_ENDPOINT: http://aternity-opentelemetry-collector:9411/api/v2/spans
OTEL_SERVICE_NAME: service104_js
ports:
- "8104:80"
build:
context: https://github.com/Aternity/Tech-Community.git#main
dockerfile: 104-opentelemetry-zipkin-nodejs-app/Dockerfile