-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
98 lines (91 loc) · 2.51 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
98 lines (91 loc) · 2.51 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: quarkus-profiling
volumes:
pyroscope-data: {}
grafana-data: {}
tempo-data: {}
services:
pyroscope:
container_name: pyroscope
image: grafana/pyroscope:latest
user: "10001:10001"
ports:
- "4040:4040"
volumes:
- pyroscope-data:/var/lib/pyroscope
command:
- "--storage.filesystem.dir=/var/lib/pyroscope"
- "--self-profiling.disable-push=true"
restart: unless-stopped
otel-collector:
container_name: otel-collector
image: otel/opentelemetry-collector-contrib:latest
ports:
- "4317:4317"
- "4318:4318"
volumes:
- ./otel/config.yaml:/etc/otel/config.yaml:ro
command: ["--config=/etc/otel/config.yaml"]
depends_on:
pyroscope:
condition: service_started
tempo:
condition: service_started
restart: unless-stopped
app:
container_name: quarkus-app
build:
context: .
dockerfile: Dockerfile
no_cache: true
ports:
- "8080:8080"
depends_on:
pyroscope:
condition: service_started
otel-collector:
condition: service_started
cap_add:
- SYS_PTRACE
- PERFMON
environment:
PYROSCOPE_APPLICATION_NAME: "quarkus-app"
PYROSCOPE_SERVER_ADDRESS: "http://pyroscope:4040"
PYROSCOPE_FORMAT: "jfr"
PYROSCOPE_UPLOAD_INTERVAL: "5s"
PYROSCOPE_PROFILER_ALLOC: "0"
PYROSCOPE_PROFILER_LOCK: "0"
PYROSCOPE_PROFILER_EVENT: "wall,alloc,itimer"
PYROSCOPE_LABELS: "env=local,arch=arm64"
QUARKUS_OTEL_EXPORTER_OTLP_ENDPOINT: "http://otel-collector:4317"
QUARKUS_OTEL_TRACES_ENABLED: "true"
QUARKUS_OTEL_METRICS_ENABLED: "true"
restart: unless-stopped
grafana:
image: grafana/grafana:latest
container_name: grafana
ports:
- "3000:3000"
volumes:
- grafana-data:/var/lib/grafana
- ./grafana/provisioning:/etc/grafana/provisioning:ro
environment:
GF_AUTH_ANONYMOUS_ENABLED: "true"
GF_AUTH_ANONYMOUS_ORG_ROLE: "Admin"
GF_AUTH_DISABLE_LOGIN_FORM: "true"
GF_FEATURE_TOGGLES_ENABLE: "flameGraph"
depends_on:
pyroscope:
condition: service_started
tempo:
condition: service_started
restart: unless-stopped
tempo:
image: grafana/tempo:2.7.2
container_name: tempo
ports:
- "3200:3200" # Tempo HTTP API (query frontend)
volumes:
- ./tempo/config.yaml:/etc/tempo/config.yaml:ro
- tempo-data:/var/tempo
command: ["-config.file=/etc/tempo/config.yaml"]
restart: unless-stopped