2025-06-24 23:11:06 +08:00
|
|
|
services:
|
|
|
|
grafana:
|
|
|
|
image: grafana/otel-lgtm:latest
|
|
|
|
container_name: lgtm
|
|
|
|
ports:
|
|
|
|
- "3000:3000" # Grafana UI
|
|
|
|
- "4317:4317" # OTLP/gRPC
|
|
|
|
- "4318:4318" # OTLP/HTTP
|
|
|
|
restart: unless-stopped
|
|
|
|
|
2025-07-24 22:53:04 +08:00
|
|
|
|
2025-06-24 23:11:06 +08:00
|
|
|
open-webui:
|
2025-07-24 22:53:04 +08:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
image: ghcr.io/open-webui/open-webui:${WEBUI_DOCKER_TAG-main}
|
2025-06-24 23:11:06 +08:00
|
|
|
container_name: open-webui
|
2025-07-24 22:53:04 +08:00
|
|
|
volumes:
|
|
|
|
- open-webui:/app/backend/data
|
|
|
|
depends_on:
|
|
|
|
- grafana
|
|
|
|
ports:
|
2025-07-24 22:54:51 +08:00
|
|
|
- ${OPEN_WEBUI_PORT-8088}:8080
|
2025-06-24 23:11:06 +08:00
|
|
|
environment:
|
|
|
|
- ENABLE_OTEL=true
|
2025-07-24 23:25:13 +08:00
|
|
|
- ENABLE_OTEL_METRICS=true
|
|
|
|
- OTEL_EXPORTER_OTLP_INSECURE=true # Use insecure connection for OTLP, remove in production
|
|
|
|
- OTEL_EXPORTER_OTLP_ENDPOINT=http://grafana:4317
|
2025-06-24 23:11:06 +08:00
|
|
|
- OTEL_SERVICE_NAME=open-webui
|
2025-07-24 22:53:04 +08:00
|
|
|
extra_hosts:
|
|
|
|
- host.docker.internal:host-gateway
|
|
|
|
restart: unless-stopped
|
2025-07-24 22:54:15 +08:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
open-webui: {}
|