add ssl to otel-collector

This commit is contained in:
2026-07-31 16:09:54 +00:00
parent 7d82b3b289
commit c7e83cd7c4
4 changed files with 36 additions and 11 deletions
+9 -1
View File
@@ -10,12 +10,16 @@ services:
# OpenTelemetry Collector - receives and routes all telemetry
otel-collector:
image: otel/opentelemetry-collector-contrib
container_name: otel-collector
container_name: otel-collector-lgtm
restart: unless-stopped
ports:
- 4317:4317 # gprc
- 4318:4318 # http
volumes:
- ./config/otel-collector.yaml:/etc/otelcol-contrib/config.yaml
- ./ssl/ca.crt:/etc/otelcol-contrib/ca.crt
- ./ssl/server.crt:/etc/otelcol-contrib/otel.crt
- ./ssl/server.key:/etc/otelcol-contrib/otel.key
depends_on:
- tempo
- mimir
@@ -25,6 +29,7 @@ services:
tempo:
image: grafana/tempo:latest
container_name: tempo
restart: unless-stopped
volumes:
- ./config/tempo.yaml:/etc/tempo/config.yaml
- tempo-data:/var/tempo
@@ -36,6 +41,7 @@ services:
mimir:
image: grafana/mimir:latest
container_name: mimir
restart: unless-stopped
volumes:
- ./config/mimir.yaml:/etc/mimir/config.yaml
- mimir-data:/data
@@ -47,6 +53,7 @@ services:
loki:
image: grafana/loki:latest
container_name: loki
restart: unless-stopped
volumes:
- ./config/loki.yaml:/etc/loki/config.yaml
- loki-data:/loki
@@ -58,6 +65,7 @@ services:
grafana:
image: grafana/grafana:latest
container_name: grafana
restart: unless-stopped
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin