Files
docs/static/docker-compose.otel.yaml
2026-05-31 22:29:11 +08:00

40 lines
1.1 KiB
YAML

services:
lgtm:
image: grafana/otel-lgtm:latest
container_name: open-webui-lgtm
restart: unless-stopped
ports:
- "3000:3000" # Grafana UI
- "4317:4317" # OTLP gRPC receiver
- "4318:4318" # OTLP HTTP receiver
volumes:
- lgtm-data:/data
open-webui:
image: ghcr.io/open-webui/open-webui:main
container_name: open-webui-otel
restart: unless-stopped
depends_on:
- lgtm
ports:
- "8088:8080"
environment:
ENABLE_OTEL: "true"
ENABLE_OTEL_TRACES: "true"
ENABLE_OTEL_METRICS: "true"
ENABLE_OTEL_LOGS: "true"
OTEL_SERVICE_NAME: open-webui
OTEL_EXPORTER_OTLP_ENDPOINT: http://lgtm:4317
OTEL_EXPORTER_OTLP_INSECURE: "true"
OTEL_METRICS_EXPORTER_OTLP_ENDPOINT: http://lgtm:4317
OTEL_METRICS_EXPORTER_OTLP_INSECURE: "true"
OTEL_LOGS_EXPORTER_OTLP_ENDPOINT: http://lgtm:4317
OTEL_LOGS_EXPORTER_OTLP_INSECURE: "true"
OTEL_METRICS_EXPORT_INTERVAL_MILLIS: "10000"
volumes:
- open-webui:/app/backend/data
volumes:
lgtm-data:
open-webui: