mirror of
https://github.com/librenms/docker.git
synced 2026-01-23 10:15:22 +00:00
* add redis sentinel support * update redis requirement warning to include REDIS_SENTINEL * update docs
2.8 KiB
2.8 KiB
Environment variables
General
TZ: The timezone assigned to the container (defaultUTC)PUID: LibreNMS user id (default1000)PGID: LibreNMS group id (default1000)MEMORY_LIMIT: PHP memory limit (default256M)UPLOAD_MAX_SIZE: Upload max size (default16M)CLEAR_ENV: Clear environment in FPM workers (defaultyes)OPCACHE_MEM_SIZE: PHP OpCache memory consumption (default128)LISTEN_IPV6: Enable IPv6 for Nginx (defaulttrue)REAL_IP_FROM: Trusted addresses that are known to send correct replacement addresses (default0.0.0.0/32)REAL_IP_HEADER: Request header field whose value will be used to replace the client address (defaultX-Forwarded-For)LOG_IP_VAR: Use another variable to retrieve the remote IP address for access log_format on Nginx. (defaultremote_addr)
Dispatcher service
⚠️ Only used if you enable and run a sidecar dispatcher container
SIDECAR_DISPATCHER: Set to1to enable sidecar dispatcher mode for this container (default0)DISPATCHER_NODE_ID: Unique node ID for your dispatcher serviceDISPATCHER_ARGS: Additional args to pass to the dispatcher serviceREDIS_HOST: Redis host for poller synchronizationREDIS_SENTINEL: Redis Sentinel host for high availability Redis clusterREDIS_SENTINEL_SERVICE: Redis Sentinel service name (defaultlibrenms)REDIS_PORT: Redis port (default6379)REDIS_PASSWORD: Redis passwordREDIS_DB: Redis database (default0)
Syslog-ng
⚠️ Only used if you enable and run a sidecar syslog-ng container
SIDECAR_SYSLOGNG: Set to1to enable sidecar syslog-ng mode for this container (default0)
Database
DB_HOST: MySQL database hostname / IP addressDB_PORT: MySQL database port (default3306)DB_NAME: MySQL database name (defaultlibrenms)DB_USER: MySQL user (defaultlibrenms)DB_PASSWORD: MySQL password (defaultlibrenms)DB_TIMEOUT: Time in seconds after which we stop trying to reach the MySQL server (useful for clusters, default60)
Misc
LIBRENMS_BASE_URL: URL of your LibreNMS instance (default/)LIBRENMS_SNMP_COMMUNITY: This container's SNMP v2c community string (defaultlibrenmsdocker)LIBRENMS_WEATHERMAP: Enable LibreNMS Weathermap plugin (defaultfalse)LIBRENMS_WEATHERMAP_SCHEDULE: CRON expression format (default*/5 * * * *)MEMCACHED_HOST: Hostname / IP address of a Memcached serverMEMCACHED_PORT: Port of the Memcached server (default11211)RRDCACHED_SERVER: RRDcached server (eg.rrdcached:42217)