# Visualizing Your Traefik Logs: Deploying the Traefik Log Dashboard with the Pangolin Stack

**URL:** <https://forum.hhf.technology/t/visualizing-your-traefik-logs-deploying-the-traefik-log-dashboard-with-the-pangolin-stack/3263>\
**Category:** Guides & Tutorials\
**Tags:** traefik-dashboard, traefik, pangolin, docker\
**Created:** [July 30, 2025, 7:31am UTC](https://forum.hhf.technology/t/visualizing-your-traefik-logs-deploying-the-traefik-log-dashboard-with-the-pangolin-stack/3263 "2025-07-30T07:31:08Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![hhf.technoloy](https://forum.hhf.technology/user_avatar/forum.hhf.technology/hhf.technoloy/32/68_2.png) [@hhf.technoloy](https://forum.hhf.technology/u/hhf.technoloy)\
**Post date:** [August 7, 2025, 3:17pm UTC](https://forum.hhf.technology/t/visualizing-your-traefik-logs-deploying-the-traefik-log-dashboard-with-the-pangolin-stack/3263/16 "2025-08-07T15:17:44Z")

</div>

```auto
  log-dashboard-backend:
    # BUILD FROM SOURCE to ensure OTLP code is included
    image: hhftechnology/traefik-log-dashboard-backend:dev    
    container_name: log-dashboard-backend
    restart: unless-stopped
    ports:
      - "3001:3001" # API port
      - "4317:4317" # OTLP GRPC port
      - "4318:4318" # OTLP HTTP port
    volumes:
      - ./config/maxmind:/maxmind
    environment:
      - PORT=3001
      # OTLP Configuration - MUST BE ENABLED
      - OTLP_ENABLED=true
      - OTLP_GRPC_PORT=4317
      - OTLP_HTTP_PORT=4318
      - OTLP_DEBUG=true
      # MaxMind Configuration  
      - USE_MAXMIND=true
      - MAXMIND_DB_PATH=/maxmind/GeoLite2-City.mmdb
      - MAXMIND_FALLBACK_ONLINE=false
      # Performance Settings
      - GOGC=50
      - GOMEMLIMIT=1000MiB
      - TRAEFIK_LOG_FILE=
      # IMPORTANT: Do NOT set TRAEFIK_LOG_FILE for OTLP-only mode
    networks:
      default:
        aliases:
          - backend # Add alias so Traefik can reach it as 'backend'

  log-dashboard-frontend:
    image: ghcr.io/hhftechnology/traefik-log-dashboard-frontend:dev
    container_name: log-dashboard-frontend
    restart: unless-stopped
    ports:
      - "3000:80"
    depends_on:
      - log-dashboard-backend
    environment:
      - BACKEND_SERVICE=log-dashboard-backend
      - BACKEND_PORT=3001

  # MaxMind GeoLite2 database updater
  maxmind-updater:
    image: alpine:latest
    container_name: maxmind-db-updater
    restart: "no"
    volumes:
      - ./config/maxmind:/data
    environment:
      - MAXMIND_LICENSE_KEY=${MAXMIND_LICENSE_KEY:-}
    command: >
      sh -c "
        apk add --no-cache wget tar &&
        cd /data &&
        if [! -f GeoLite2-City.mmdb] || [$$(find . -name 'GeoLite2-City.mmdb' -mtime +7)]; then
          echo 'Downloading/updating MaxMind GeoLite2-City database...' &&
          wget -O GeoLite2-City.tar.gz 'https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key=$$MAXMIND_LICENSE_KEY&suffix=tar.gz' &&
          tar -xzf GeoLite2-City.tar.gz --strip-components=1 '*/GeoLite2-City.mmdb' &&
          rm -f GeoLite2-City.tar.gz &&
          echo 'MaxMind database updated successfully'
        else
          echo 'MaxMind database is up to date'
        fi
      "

```

```auto
# Enhanced Traefik Configuration with Working OTLP
# FILE: ./config/traefik/traefik_config.yml

# API Configuration
api:
  dashboard: true
  insecure: true
  debug: true # Enable debug for troubleshooting

# Certificate Resolvers
certificatesResolvers:
  letsencrypt:
    acme:
      caServer: https://acme-v02.api.letsencrypt.org/directory
      email: 
      httpChallenge:
        entryPoint: web
      storage: /letsencrypt/acme.json

# Entry Points
entryPoints:
  web:
    address: :80
    forwardedHeaders:
      trustedIPs:
        - "127.0.0.1/32" # localhost
        - "10.0.0.0/8" # Private network
        - "172.16.0.0/12" # Docker networks
        - "192.168.0.0/16" # Private networks
  websecure:
    address: :443
    http:
      tls:
        certResolver: letsencrypt
    transport:
      respondingTimeouts:
        readTimeout: 30m

# Experimental Plugins
experimental:
  localPlugins:
    bandwidthlimiter:
      moduleName: github.com/hhftechnology/bandwidthlimiter
    ipwhitelistshaper:
      moduleName: github.com/hhftechnology/ipwhitelistshaper
    statiq:
      moduleName: github.com/hhftechnology/statiq
    tlsguard:
      moduleName: github.com/hhftechnology/tlsguard
  plugins:
    badger:
      moduleName: github.com/fosrl/badger
      version: v1.2.0

# Providers
providers:
  file:
    directory: /rules
    watch: true
  http:
    endpoint: http://pangolin:3001/api/v1/traefik-config
    pollInterval: 5s

# Server Transport
serversTransport:
  insecureSkipVerify: true

# Logging Configuration
log:
  level: "INFO" # Set to DEBUG if you need more verbose logs
  format: json
  filePath: "/logs/traefik-app.log"

# Access Logs (Optional - can run alongside OTLP)
accessLog:
  format: json
  filePath: "/logs/access.log"
  bufferingSize: 100
  fields:
    defaultMode: keep
    names:
      ClientUsername: drop
    headers:
      defaultMode: keep
      names:
        User-Agent: keep
        Authorization: drop
        Content-Type: keep

# --- OTLP TRACING CONFIGURATION ---
tracing:
  # Service name for traces
  serviceName: "traefik"
  
  # Sample rate - 1.0 means 100% (reduce for production, e.g., 0.1 = 10%)
  sampleRate: 1.0
  
  # Global attributes added to all spans
  globalAttributes:
    environment: "production"
    service.version: "v3.4.0"
    deployment.environment: "docker"
    traefik.instance: "main"
  
  # OTLP exporter configuration
  otlp:
    # HTTP exporter (recommended)
    http:
      # CRITICAL: This endpoint must be reachable from Traefik
      endpoint: "http://log-dashboard-backend:4318"
      # Timeout for requests
    # Alternative: GRPC exporter (uncomment to use instead)
    # grpc:
    # endpoint: "log-dashboard-backend:4317"
    # insecure: true
    # timeout: "10s"

```

---

_[View the full topic](https://forum.hhf.technology/t/visualizing-your-traefik-logs-deploying-the-traefik-log-dashboard-with-the-pangolin-stack/3263)._
