-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yaml
68 lines (52 loc) · 2.04 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
# docker-compose.yaml
#
# Aternity Tech-Community
# 107-opentelemetry-autoinstrumentation-nodejs-app
# version: 24.3.240308
#
# Compose file to use with the cookbook 107
#
# 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.9"
services:
aternity-opentelemetry-collector:
# Aternity OpenTelemetry Collector
# https://hub.docker.com/r/aternity/apm-collector
image: registry.hub.docker.com/aternity/apm-collector:2022.11.0-4
environment:
SERVER_URL: "wss://${ATERNITY_SAAS_SERVER_HOST}/?RPM_AGENT_CUSTOMER_ID=${ATERNITY_CUSTOMER_ID}"
ports:
# 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
# Uncomment the line to expose the endpoints for other telemetry protocols
#
# 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
#
# 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
service107_js:
environment:
OTEL_SERVICE_NAME: service107_js
OTEL_EXPORTER_OTLP_ENDPOINT: http://aternity-opentelemetry-collector:4317
ports:
- "8107:80"
build:
context: https://github.com/Aternity/Tech-Community.git#main
dockerfile: 107-opentelemetry-autoinstrumentation-nodejs-app/Dockerfile