11---
2- version : ' 3.4'
32services :
43 app :
54 build :
65 context : " ."
76 dockerfile : Dockerfile
8- container_name : sample -app
7+ container_name : otel -app
98 environment :
109 - ASPNETCORE_ENVIRONMENT=Production
1110 ports :
1211 - 8080:8080
1312 networks :
14- - sample -nat
13+ - otel -nat
1514 depends_on :
16- - otel -collector
15+ - opentelemetry -collector
1716
1817 seq :
1918 image : datalust/seq:2024.3
20- container_name : sample -seq
19+ container_name : otel -seq
2120 environment :
2221 - ACCEPT_EULA=Y
2322 volumes :
@@ -27,51 +26,65 @@ services:
2726 - " 45341:45341"
2827 - " 8081:80"
2928 networks :
30- - sample -nat
29+ - otel -nat
3130 restart : always
3231
33- otel -collector :
32+ opentelemetry -collector :
3433 image : otel/opentelemetry-collector-contrib:0.114.0
35- container_name : sample-otel-collector
36- command : ["--config=/etc/otel-collector-config.yaml"]
34+ container_name : otel-opentelemetry-collector
3735 volumes :
38- - ./otel-collector/otel-collector-config.yaml:/etc/otel-collector- config.yaml:ro
36+ - ./otel-collector/otel-collector-config.yaml:/etc/otelcol-contrib/ config.yaml:ro
3937 ports :
4038 - " 4317:4317" # OTLP gRPC receiver
4139 - " 8888:8888" # internal metrics
4240 - " 8889:8889" # OTLP metrics
4341 networks :
44- - sample -nat
42+ - otel -nat
4543 restart : unless-stopped
4644
4745 fluentbit :
4846 image : fluent/fluent-bit:3.2.10
49- container_name : sample -fluentbit
47+ container_name : otel -fluentbit
5048 volumes :
5149 - ./Fluent-Bit:/fluent-bit/etc
5250 ports :
5351 - " 4318:4318" # OTLP gRPC receiver
5452 networks :
55- - sample -nat
53+ - otel -nat
5654 depends_on :
57- - otel -collector
55+ - opentelemetry -collector
5856 restart : unless-stopped
5957
6058 loki :
6159 image : grafana/loki:latest
62- container_name : sample -loki
60+ container_name : otel -loki
6361 command : -config.file=/etc/loki/local-config.yaml
6462 ports :
6563 - " 3100:3100"
6664 networks :
67- - sample -nat
65+ - otel -nat
6866 depends_on :
69- - otel-collector
67+ - opentelemetry-collector
68+ restart : unless-stopped
69+
70+ tempo :
71+ image : grafana/tempo:main-d528a28
72+ container_name : otel-tempo
73+ command : [ "-config.file=/etc/tempo.yaml" ]
74+ volumes :
75+ - ./tempo/tempo.yaml:/etc/tempo.yaml
76+ - tempo-data:/tmp/tempo
77+ ports :
78+ - " 3200:3200" # tempo
79+ networks :
80+ - otel-nat
81+ depends_on :
82+ - opentelemetry-collector
7083 restart : unless-stopped
7184
7285 elasticsearch :
7386 image : docker.elastic.co/elasticsearch/elasticsearch:8.16.1
74- container_name : sample -elasticsearch
87+ container_name : otel -elasticsearch
7588 environment :
7689 - cluster.name=jaeger-cluster
7790 - discovery.type=single-node
@@ -85,12 +98,12 @@ services:
8598 - " 9200:9200"
8699 - " 9300:9300"
87100 networks :
88- - sample -nat
101+ - otel -nat
89102 restart : on-failure
90103
91104 jaeger-collector :
92105 image : jaegertracing/jaeger-collector:1.63.0
93- container_name : sample -jaeger-collector
106+ container_name : otel -jaeger-collector
94107 environment :
95108 - SPAN_STORAGE_TYPE=elasticsearch
96109 command : [
@@ -106,14 +119,14 @@ services:
106119 - " 14250:14250"
107120 - " 9411:9411"
108121 networks :
109- - sample -nat
122+ - otel -nat
110123 depends_on :
111124 - elasticsearch
112125 restart : on-failure
113126
114127 jaeger-query :
115128 image : jaegertracing/jaeger-query:1.63.0
116- container_name : sample -jaeger-query
129+ container_name : otel -jaeger-query
117130 environment :
118131 - SPAN_STORAGE_TYPE=elasticsearch
119132 - no_proxy=localhost
@@ -126,14 +139,14 @@ services:
126139 - " 16686:16686"
127140 - " 16687:16687"
128141 networks :
129- - sample -nat
142+ - otel -nat
130143 depends_on :
131144 - jaeger-collector
132145 restart : on-failure
133146
134147 kibana :
135148 image : docker.elastic.co/kibana/kibana:8.16.1
136- container_name : sample -kibana
149+ container_name : otel -kibana
137150 environment :
138151 # remember the container_name for elasticsearch?
139152 # we use it here to access that container
@@ -146,12 +159,12 @@ services:
146159 depends_on :
147160 - elasticsearch
148161 networks :
149- - sample -nat
162+ - otel -nat
150163 restart : on-failure
151164
152165 cadvisor :
153166 image : gcr.io/cadvisor/cadvisor:latest
154- container_name : sample -cadvisor
167+ container_name : otel -cadvisor
155168 volumes :
156169 - " /:/rootfs"
157170 - " /var/run:/var/run"
@@ -164,12 +177,12 @@ services:
164177 ports :
165178 - " 8090:8080"
166179 networks :
167- - sample -nat
180+ - otel -nat
168181 restart : unless-stopped
169182
170183 node-exporter :
171184 image : prom/node-exporter:v1.9.0
172- container_name : sample -node-exporter
185+ container_name : otel -node-exporter
173186 command :
174187 - ' --path.procfs=/host/proc'
175188 - ' --path.rootfs=/rootfs'
@@ -186,23 +199,24 @@ services:
186199 ports :
187200 - 9100:9100
188201 networks :
189- - sample -nat
202+ - otel -nat
190203 restart : unless-stopped
191204
192205 prometheus :
193206 image : prom/prometheus:v3.0.1
194- container_name : sample -prometheus
207+ container_name : otel -prometheus
195208 volumes :
196- - ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
209+ - " ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro"
210+ - prometheus-data:/prometheus
197211 ports :
198212 - " 9090:9090"
199213 networks :
200- - sample -nat
214+ - otel -nat
201215 restart : unless-stopped
202216
203217 grafana :
204218 image : grafana/grafana-oss:11.3.1
205- container_name : sample -grafana
219+ container_name : otel -grafana
206220 environment :
207221 GF_SECURITY_ADMIN_USER : admin
208222 GF_SECURITY_ADMIN_PASSWORD : 1qaz2wsx
@@ -214,25 +228,28 @@ services:
214228 ports :
215229 - " 3000:3000"
216230 networks :
217- - sample -nat
231+ - otel -nat
218232 restart : unless-stopped
219233
220234 gatus :
221235 image : docker.io/twinproduction/gatus:v5.17.0
222- container_name : sample -gatus
236+ container_name : otel -gatus
223237 user : ' 999:999'
224238 volumes :
225239 - ./gatus/config.yaml:/config/config.yaml:ro
226240 ports :
227241 - " 8088:8080"
228242 networks :
229- - sample -nat
243+ - otel -nat
230244 restart : unless-stopped
231245
232246volumes :
233247 elasticsearch-data :
234248 seq-data :
235249 grafana-data :
250+ uptime-kuma-data :
251+ tempo-data :
252+ prometheus-data :
236253networks :
237- sample -nat :
254+ otel -nat :
238255 driver : bridge
0 commit comments