1
0

docker-compose.otel.yaml 904 B

1234567891011121314151617181920212223242526272829303132333435
  1. services:
  2. grafana:
  3. image: grafana/otel-lgtm:latest
  4. container_name: lgtm
  5. ports:
  6. - "3000:3000" # Grafana UI
  7. - "4317:4317" # OTLP/gRPC
  8. - "4318:4318" # OTLP/HTTP
  9. restart: unless-stopped
  10. open-webui:
  11. build:
  12. context: .
  13. dockerfile: Dockerfile
  14. image: ghcr.io/open-webui/open-webui:${WEBUI_DOCKER_TAG-main}
  15. container_name: open-webui
  16. volumes:
  17. - open-webui:/app/backend/data
  18. depends_on:
  19. - grafana
  20. ports:
  21. - ${OPEN_WEBUI_PORT-8088}:8080
  22. environment:
  23. - ENABLE_OTEL=true
  24. - ENABLE_OTEL_METRICS=true
  25. - OTEL_EXPORTER_OTLP_INSECURE=true # Use insecure connection for OTLP, remove in production
  26. - OTEL_EXPORTER_OTLP_ENDPOINT=http://grafana:4317
  27. - OTEL_SERVICE_NAME=open-webui
  28. extra_hosts:
  29. - host.docker.internal:host-gateway
  30. restart: unless-stopped
  31. volumes:
  32. open-webui: {}