Question about redis for web cache (not polling)

Hello,

We’re running/testing LibreNMS under docker. The documentation for the librenms.env file and compose.yml seem incorrect, but everything is working fine.

In librenms.env (docker/examples/compose/librenms.env at master · librenms/docker · GitHub) it shows:

CACHE_DRIVER=redis
SESSION_DRIVER=redis
REDIS_HOST=redis

and in the compose.yml (docker/examples/compose/compose.yml at master · librenms/docker · GitHub) it shows:

  redis:
    image: redis:7.2-alpine
    container_name: librenms_redis
    environment:
      - "TZ=${TZ}"
    restart: always

The configuration for redis does not set a hostname or expose a port, so it seems like redis is not even being used?

Thanks

On a running system if you look in config/database.php there is a redis setting for ‘default’ for redis_db 0 and ‘cache’ for redis_db 1 … with default settings for 127.0.0.1 port 6379 etc (unless overriden by REDIS_HOST etc…)

I’m not sure if this helps your inquiry … there is also a redis cli monitor type command you could connect to your redis and ‘see’ if there is any activity etc…