11services :
2- otel-collector :
3- image : otel/opentelemetry-collector-contrib :latest
4- container_name : otel-collector
2+ otel-lgtm :
3+ image : grafana/otel-lgtm :latest
4+ container_name : otel-lgtm
55 restart : unless-stopped
6+ ports :
7+ - " 3000:3000" # Grafana UI
8+ - " 4317:4317" # OTLP gRPC
9+ - " 4318:4318" # OTLP HTTP
610 volumes :
7- - " ./otel-collector-config.yaml:/etc/otelcol-contrib/config.yaml"
8- ports :
9- - " 4317:4317"
10- - " 4318:4318"
11+ - " lgtm-data:/data" # Persist data across restarts
1112 networks : [telemetry]
12- depends_on : [tempo, loki]
13-
14- tempo :
15- image : grafana/tempo:latest
16- container_name : tempo
17- restart : unless-stopped
18- volumes :
19- - " ./tempo.yaml:/etc/tempo.yaml"
20- networks : [telemetry]
21- command :
22- - " -config.file=/etc/tempo.yaml"
23-
24- prometheus :
25- image : prom/prometheus:latest
26- container_name : prometheus
27- restart : unless-stopped
28- volumes :
29- - " ./prometheus.yaml:/etc/prometheus/prometheus.yml"
30- ports :
31- - " 9090:9090" # Prometheus UI
32- networks : [telemetry]
33- depends_on : [otel-collector]
34-
35- loki :
36- image : grafana/loki:latest
37- container_name : loki
38- restart : unless-stopped
39- networks : [telemetry]
40- command :
41- - " -config.file=/etc/loki/local-config.yaml"
42-
43- grafana :
44- image : grafana/grafana:latest
45- container_name : grafana
46- restart : unless-stopped
47- ports :
48- - " 3000:3000"
49- volumes :
50- - " grafana-storage:/var/lib/grafana"
51- networks : [telemetry]
52- depends_on : [loki, prometheus, tempo]
5313
14+ # Cloudflare Tunnel - Exposes collector for deployed actions
5415 cloudflared :
5516 image : cloudflare/cloudflared:latest
5617 container_name : cloudflared
5718 restart : unless-stopped
5819 networks : [telemetry]
59- depends_on : [otel-collector ]
60- command :
20+ depends_on : [otel-lgtm ]
21+ command :
6122 - " tunnel"
6223 - " --url"
63- - " http://otel-collector :4318"
24+ - " http://otel-lgtm :4318"
6425
6526networks :
6627 telemetry :
6728 driver : bridge
6829
6930volumes :
70- grafana-storage :
31+ lgtm-data :
0 commit comments