Notifications
Deprecation Notice
Watchtower v2 Legacy Notification Deprecation
Deprecated configuration options will be removed with the release of Watchtower v2.
Use the the NOTIFICATION URL with the appropriate Shoutrrr URL scheme instead.
Notification URL
Configures the notification service URL(s).
Argument: --notification-url
Environment Variable: WATCHTOWER_NOTIFICATION_URL
Type: String (comma-separated or space-separated)
Default: NoneMultiple Notification URLs
To send notifications to multiple services simultaneously, you can:
- Use comma-separated URLs:
--notification-url="discord://xxx,telegram://yyy" - Specify the flag multiple times:
--notification-url=discord://xxx --notification-url=telegram://yyy
See Configuring Multiple Notification URLs for detailed examples.
CLI Flags vs Environment Variables
The CLI flag can be called multiple times as CLI arguments; however, defining the environment variable multiple times will NOT work and only the last value will be used.
This is because CLI flags use a StringArray type that supports multiple invocations, while environment variables are simple key-value pairs that get overwritten when defined multiple times. For environment variables, use comma-separated or space-separated values.
Notification Split by Container
Send separate notifications for each updated container instead of grouping them.
Argument: --notification-split-by-container
Environment Variable: WATCHTOWER_NOTIFICATION_SPLIT_BY_CONTAINER
Type: Boolean
Default: falseNotification Template
Sets the Go template used for formatting notification messages.
Argument: --notification-template
Environment Variable: WATCHTOWER_NOTIFICATION_TEMPLATE
Type: String
Default: See default templates belowNotification Template File
Specifies the path to a file containing the Shoutrrr text/template for notification messages.
Argument: --notification-template-file
Environment Variable: WATCHTOWER_NOTIFICATION_TEMPLATE_FILE
Type: String
Default: Nonenotification-template and notification-template-file configuration options are specified, then the file-based template takes precedence over the inline template.New Feature
This is a new feature and is not yet fully documented in the main configuration reference. It is intentionally omitted from the deprecation notice.
Notification Report
Enables the session report as the notification template data, including container statuses and logs.
Argument: --notification-report
Environment Variable: WATCHTOWER_NOTIFICATION_REPORT
Type: Boolean
Default: falseNotifications Level
The log level used for sending notifications. Possible values: panic, fatal, error, warn, info or debug.
Argument: --notifications-level
Environment Variable: WATCHTOWER_NOTIFICATIONS_LEVEL
Type: String
Default: infoNotifications Hostname
Custom hostname for notification titles.
Argument: --notifications-hostname
Environment Variable: WATCHTOWER_NOTIFICATIONS_HOSTNAME
Type: String
Default: NoneNotifications Delay
Delay before sending notifications, expressed in seconds.
Argument: --notifications-delay
Environment Variable: WATCHTOWER_NOTIFICATIONS_DELAY
Type: Integer
Default: NoneNotification Title Tag
Title prefix tag for notifications.
Argument: --notification-title-tag
Environment Variable: WATCHTOWER_NOTIFICATION_TITLE_TAG
Type: String
Default: NoneNotification Skip Title
Do not pass the title param to notifications.
Argument: --notification-skip-title
Environment Variable: WATCHTOWER_NOTIFICATION_SKIP_TITLE
Type: Boolean
Default: falseNotification Log Stdout
Write notification logs to stdout instead of logging (to stderr).
Argument: --notification-log-stdout
Environment Variable: WATCHTOWER_NOTIFICATION_LOG_STDOUT
Type: Boolean
Default: falseDisable Startup Message
Suppresses the info-level notification sent when Watchtower starts.
Argument: --no-startup-message
Environment Variable: WATCHTOWER_NO_STARTUP_MESSAGE
Type: Boolean
Default: falseDeprecated Configuration Options
/// details | The following legacy configuration options and examples are deprecated and will be removed with the release of Watchtower v2. type: warning
General Options
Notifications
Specifies the notification services to use (comma-separated). Legacy providers (email, slack, etc.) are deprecated.
Argument: --notifications, -n
Environment Variable: WATCHTOWER_NOTIFICATIONS
Type: String (comma-separated or multiple flags)
Default: NoneSMTP
Email From
The e-mail address from which notifications will be sent.
Argument: --notification-email-from
Environment Variable: WATCHTOWER_NOTIFICATION_EMAIL_FROM
Type: String
Default: NoneEmail To
The e-mail address to which notifications will be sent.
Argument: --notification-email-to
Environment Variable: WATCHTOWER_NOTIFICATION_EMAIL_TO
Type: String
Default: NoneEmail Server
The SMTP server (IP or FQDN) to send notifications through.
Argument: --notification-email-server
Environment Variable: WATCHTOWER_NOTIFICATION_EMAIL_SERVER
Type: String
Default: NoneEmail Server TLS Skip Verify
Skip verification of the server certificate when using TLS.
Argument: --notification-email-server-tls-skip-verify
Environment Variable: WATCHTOWER_NOTIFICATION_EMAIL_SERVER_TLS_SKIP_VERIFY
Type: Boolean
Default: falseEmail Server User
The username for the SMTP server if it requires authentication.
Argument: --notification-email-server-user
Environment Variable: WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER
Type: String
Default: NoneEmail Server Password
The password for the SMTP server if it requires authentication.
Argument: --notification-email-server-password
Environment Variable: WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD
Type: String
Default: NoneEmail Subject Tag
Subject prefix tag for notifications via mail.
Argument: --notification-email-subjecttag
Environment Variable: WATCHTOWER_NOTIFICATION_EMAIL_SUBJECTTAG
Type: String
Default: ""Email Server Port
The port the SMTP server listens on.
Argument: --notification-email-server-port
Environment Variable: WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT
Type: Integer
Default: 25Email Delay
The delay (in seconds) between sending notifications if multiple containers are updated at once.
Argument: --notification-email-delay
Environment Variable: WATCHTOWER_NOTIFICATION_EMAIL_DELAY
Type: Integer
Default: NoneGotify
Gotify URL
The URL of the Gotify instance.
Argument: --notification-gotify-url
Environment Variable: WATCHTOWER_NOTIFICATION_GOTIFY_URL
Type: String
Default: NoneGotify Token
Sets the Gotify token for notifications.
Argument: --notification-gotify-token
Environment Variable: WATCHTOWER_NOTIFICATION_GOTIFY_TOKEN
Type: String
Default: NoneGotify TLS Skip Verify
Skip verification of the server certificate when using TLS.
Argument: --notification-gotify-tls-skip-verify
Environment Variable: WATCHTOWER_NOTIFICATION_GOTIFY_TLS_SKIP_VERIFY
Type: Boolean
Default: falsedisabletls=yes query parameter in the gotify:// URL instead.Microsoft Teams
Microsoft Teams Hook
Sets the Microsoft Teams webhook URL for notifications.
Argument: --notification-msteams-hook
Environment Variable: WATCHTOWER_NOTIFICATION_MSTEAMS_HOOK_URL
Type: String
Default: None--notification-msteams-hook must be an absolute URL using the https:// scheme (including the host).
Relative URLs and non-HTTPS schemes are rejected at runtime.Slack
Slack Hook URL
Sets the Slack webhook URL for notifications.
Argument: --notification-slack-hook-url
Environment Variable: WATCHTOWER_NOTIFICATION_SLACK_HOOK_URL
Type: String
Default: NoneSlack Identifier
Custom name under which messages are sent.
Argument: --notification-slack-identifier
Environment Variable: WATCHTOWER_NOTIFICATION_SLACK_IDENTIFIER
Type: String
Default: watchtowerbotname query parameter in the slack:// URL instead.Slack Channel
A string which overrides the webhook’s default channel (optional).
Argument: --notification-slack-channel
Environment Variable: WATCHTOWER_NOTIFICATION_SLACK_CHANNEL
Type: String
Default: NoneSlack Icon Emoji
An emoji code string to use in place of the default icon.
Argument: --notification-slack-icon-emoji
Environment Variable: WATCHTOWER_NOTIFICATION_SLACK_ICON_EMOJI
Type: String
Default: Noneicon_emoji query parameter in the slack:// or discord:// URL instead.Slack Icon URL
An icon image URL string to use in place of the default icon.
Argument: --notification-slack-icon-url
Environment Variable: WATCHTOWER_NOTIFICATION_SLACK_ICON_URL
Type: String
Default: Noneicon_url query parameter in the slack:// or discord:// URL instead.///