-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose-otel.yaml
51 lines (44 loc) · 1.12 KB
/
docker-compose-otel.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
version: '3.1'
services:
postgresdb:
image: postgres
ports:
- 5432:5432
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_USER=matthias
- POSTGRES_DB=mydb
todobackend:
image: maeddes/todobackend:otel #oinst
ports:
- "8080:8080"
environment:
SPRING_PROFILES_ACTIVE: prod
OTEL_EXPORTER_OTLP_ENDPOINT: http:https://jaeger:4317
OTEL_RESOURCE_ATTRIBUTES: service.name=todobackend
depends_on:
- postgresdb
todoui:
image: maeddes/todoui:otel #otx
ports:
- "8090:8090"
environment:
OTEL_EXPORTER_OTLP_ENDPOINT: http:https://jaeger:4317
OTEL_RESOURCE_ATTRIBUTES: service.name=todoui
jaeger:
image: jaegertracing/all-in-one:latest
environment:
- COLLECTOR_OTLP_ENABLED=true
ports:
- "16686:16686"
- "14250"
- "14269:14269"
# collector:
# image: otel/opentelemetry-collector:latest
# command: [ "--config=/etc/otel-collector-config.yaml" ]
# volumes:
# - ./otel-config.yaml:/etc/otel-collector-config.yaml
# ports:
# - "4317:4317"
# depends_on:
# - jaeger-service