Skip to content

Environment Variables

Except for container / keyword specific settings and regex patterns a lot of the settings can be configured via Environment Variables.

VariablesDescriptionDefault
NTFY_URLURL of your ntfy server instanceN/A
NTFY_TOKENAuthentication token for ntfy in case you need authentication.N/A
NTFY_USERNAMEntfy Username to use with the password in case you need authentication.N/A
NTFY_PASSWORDntfy password to use with the username in case you need authentication.N/A
NTFY_TOPICNotification topic for ntfy.N/A
NTFY_TAGSTags/Emojis for ntfy notifications.kite,mag
NTFY_PRIORITYNotification priority for ntfy messages.3 / default
APPRISE_URLAny Apprise-compatible URLN/A
CONTAINERSA comma separated list of containers. These are added to the containers from the config.yaml (if you are using one).N/A
SWARM_SERVICESA comma separated list of docker swarm services to monitor.N/A
LOGGIFLY_MODESet this variable to swarm when wanting to use LoggiFly in swarm modeN/A
GLOBAL_KEYWORDSKeywords that will be monitored for all containers. Overrides global_keywords.keywords from the config.yaml.N/A
GLOBAL_KEYWORDS_WITH_ATTACHMENTNotifications triggered by these global keywords have a logfile attached.N/A
EXCLUDED_KEYWORDSKeywords that will always be ignored. Can be used to suppress notifications from irrelevant log linesN/A
ATTACH_LOGFILEAttach a Logfile to all notifications.True
ATTACHMENT_LINESDefine the number of Log Lines in the attachment file20
NOTIFICATION_COOLDOWNCooldown period (in seconds) per container per keyword before a new message can be sent5
ACTION_COOLDOWNCooldown period (in seconds) before the next container action can be performed. Always at least 60s. (action_keywords are only configurable in YAML)300
LOG_LEVELLog Level for LoggiFly container logs.INFO
MULTI_LINE_ENTRIESWhen enabled the program tries to catch log entries that span multiple lines.
If you encounter bugs or you simply don't need it you can disable it.
True
HIDE_REGEX_IN_TITLEExclude regex from the notification title for a cleaner look. Useful when using very long regexes.False
RELOAD_CONFIGWhen the config file is changed the program reloads the configTrue
DISABLE_START_MESSAGEDisable startup message.False
DISABLE_SHUTDOWN_MESSAGEDisable shutdown message.False
DISABLE_CONFIG_RELOAD_MESSAGEDisable message when the config file is reloaded.False
DISABLE_CONTAINER_EVENT_MESSAGEDisable message when the monitoring of a container stops or starts.False