-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
116 lines (108 loc) · 3.03 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
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
---
version: "3.9"
services:
spring-boot-app:
build:
context: ./app/
container_name: spring-boot-app
hostname: spring-boot-app
environment:
- JAVA_TOOL_OPTIONS='-javaagent:/otel/opentelemetry-javaagent.jar'
- OTEL_TRACES_EXPORTER=otlp
- OTEL_METRICS_EXPORTER=otlp
- OTEL_LOGS_EXPORTER=otlp
- OTEL_RESOURCE_ATTRIBUTES="app.name=spring-boot-app"
- OTEL_EXPORTER_LOGGING_HEADERS="Content-Type=application/json"
- OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4318
volumes:
- ./etc/otel-java-agent/opentelemetry-javaagent.jar:/otel/opentelemetry-javaagent.jar
ports:
- 8080:8080
restart: always
depends_on:
- otel-collector
otel-collector:
image: otel/opentelemetry-collector-contrib:0.102.0
container_name: otel-collector
volumes:
- ./etc/otel-collector/config.yml:/etc/otel-collector-config.yml:ro
- /var/run/docker.sock:/var/run/docker.sock
command: ["--config=/etc/otel-collector-config.yml"]
ports:
- "4318:4318"
- "8889:8889"
depends_on:
- loki
- tempo
- prometheus
grafana:
image: grafana/grafana-oss:10.4.4
volumes:
- ./etc/grafana/datasources.yml:/etc/grafana/provisioning/datasources/datasources.yaml
- grafana-storage:/var/lib/grafana
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_DISABLE_LOGIN_FORM=true
- GF_USERS_DEFAULT_THEME=system
ports:
- "3000:3000"
depends_on:
- loki
- tempo
- prometheus
- otel-collector
- spring-boot-app
prometheus:
image: prom/prometheus:v2.52.0
restart: always
command:
- --config.file=/etc/prometheus/prometheus.yml
- '--storage.tsdb.path=/prometheus'
- '--storage.tsdb.retention.time=1d'
volumes:
- ./etc/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus-data:/prometheus
ports:
- "9090:9090"
loki:
image: grafana/loki:2.9.8
command: -config.file=/etc/loki/config.yml
volumes:
- ./etc/loki/config.yml:/etc/loki/config.yml
- loki-storage:/loki
ports:
- "3100:3100"
tempo:
image: grafana/tempo:2.5.0
command: -config.file=/etc/tempo.yml
volumes:
- ./etc/tempo/tempo.yml:/etc/tempo.yml
- tempo-storage:/var/lib/tempo
ports:
- "3200:3200"
mimir:
image: grafana/mimir:2.12.0
ports:
- "9009:9009"
volumes:
- mimir-storage:/var/lib/mimir
- ./etc/mimir/mimir-config.yaml:/etc/mimir/config.yaml
command:
- -config.file=/etc/mimir/config.yaml
minio:
image: minio/minio:RELEASE.2024-06-13T22-53-53Z
entrypoint: [""]
command: ["sh", "-c", "mkdir -p /data/mimir && minio server --quiet /data"]
environment:
- MINIO_ROOT_USER=mimir
- MINIO_ROOT_PASSWORD=supersecret
volumes:
- minio-data:/data
volumes:
grafana-storage: {}
prometheus-data: {}
mimir-storage: {}
loki-storage: {}
tempo-storage: {}
minio-data: {}