Watchtower Docker Notifications: Setup Discord & Telegram

If you are using Watchtower to automate Docker container updates, you are already saving time. But without notifications, you are operating blind. You will not know:

  • when containers update
  • if something fails
  • or whether everything is running as expected

That is where watchtower docker notifications come in.

With the right setup, Watchtower can instantly notify you via Discord, Telegram, email, or other services whenever something changes. No manual checks. No guesswork.

This guide walks you through exactly how to configure notifications in Watchtower, including Discord and Telegram setups, environment variables, and real-world examples that actually work.

What Are Watchtower Docker Notifications?

Watchtower notifications are alerts triggered whenever Watchtower performs actions like:

  • pulling new images
  • updating containers
  • restarting services
  • encountering errors

Instead of checking logs manually, notifications push updates directly to you. This is especially useful if:

  • you are running production containers
  • you manage multiple services
  • you want visibility without constant monitoring

If you are still unclear on how Watchtower operates behind the scenes, it helps to first understand its update flow in this complete Watchtower guide. Once you understand that flow, notifications become much more meaningful.

How Watchtower Notifications Work

At a basic level, Watchtower uses environment variables to send notifications. You define:

  • the notification service (Discord, Telegram, etc.)
  • authentication details (tokens, URLs)
  • message behavior

All notification services are configured through a unified system that relies on structured URLs and environment variables.

When Watchtower performs an action, it sends a formatted message to your configured service. There is no complex plugin system, just clean, environment-based configuration.

Supported Notification Services

Watchtower supports multiple notification platforms, including:

  • Discord
  • Telegram
  • Slack
  • Email (SMTP)
  • Gotify
  • Microsoft Teams
  • Generic Webhooks

In this guide, we will focus on the two most commonly used: discord and telegram notifications.

Watchtower Docker Discord Notification Setup

Discord is one of the easiest ways to get real-time updates.

Step 1: Create a Discord Webhook

  1. Open your Discord server
  2. Go to Server Settings → Integrations → Webhooks
  3. Click New Webhook
  4. Copy the webhook URL

Step 2: Add Environment Variables

You need to pass the webhook URL to Watchtower.

Example (Docker run)

docker run -d \
  --name watchtower \
  -e WATCHTOWER_NOTIFICATIONS=shoutrrr \
  -e WATCHTOWER_NOTIFICATION_URL=discord://<webhook_id>/<webhook_token> \
  -v /var/run/docker.sock:/var/run/docker.sock \
  containrrr/watchtower

Step 3: Format the URL Properly

Discord URLs need to follow this structure:

discord://webhook_id/webhook_token

Avoid using the raw webhook URL, watchtower requires the transformed format.

What You will Receive

Once configured, you will get messages like:

  • container updated successfully
  • image pulled
  • update failed

All directly in your Discord channel.

Watchtower Docker Telegram Notification Setup

Telegram is another popular choice, especially for private alerts.

Step 1: Create a Telegram Bot

  1. Open Telegram
  2. Search for BotFather
  3. Run /start
  4. Use /newbot
  5. Copy your bot token

Step 2: Get Your Chat ID

You can get your chat ID by messaging your bot and using a simple API call, or using helper bots like userinfobot.

Step 3: Configure Watchtower

Example:

docker run -d \
  --name watchtower \
  -e WATCHTOWER_NOTIFICATIONS=shoutrrr \
  -e WATCHTOWER_NOTIFICATION_URL=telegram://<bot_token>@telegram?chats=<chat_id> \
  -v /var/run/docker.sock:/var/run/docker.sock \
  containrrr/watchtower

Important Notes

  • Make sure your bot has permission to send messages
  • Double-check the chat ID (this is a common mistake)
  • Ensure the format is correct, even small errors break notifications

Using Docker Compose for Notifications

If you are using Docker Compose (recommended for cleaner setups), here is how it looks:

version: "3"

services:
  watchtower:
    image: containrrr/watchtower
    container_name: watchtower
    environment:
      - WATCHTOWER_NOTIFICATIONS=shoutrrr
      - WATCHTOWER_NOTIFICATION_URL=discord://webhook_id/webhook_token
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    restart: unless-stopped

You can swap the notification URL for Telegram or any other supported service.

Customizing Notification Behavior

Watchtower allows you to control how notifications behave.

Common environment variables:

  • WATCHTOWER_NOTIFICATIONS → enables notification system
  • WATCHTOWER_NOTIFICATION_URL → defines where messages are sent
  • WATCHTOWER_NOTIFICATION_TEMPLATE → customize message format
  • WATCHTOWER_NOTIFICATION_LEVEL → control verbosity

Example: Change Notification Level

-e WATCHTOWER_NOTIFICATION_LEVEL=info

Options include:

  • info
  • warn
  • error

This helps reduce noise if you only care about failures.

Common Issues (And How to Fix Them)

1. Notifications Not Sending

  • Check environment variables
  • Verify URL format
  • Ensure container restarted after changes

2. Invalid URL Format

This is the most common issue.

Fix:

  • Use correct scheme (discord://, telegram://)
  • Avoid raw URLs

3. Telegram Bot Not Responding

  • Bot not started
  • Wrong chat ID
  • Bot lacks permissions

4. No Updates, No Notifications

If Watchtower is not updating containers, it will not send alerts. Make sure:

  • images actually have updates
  • Watchtower is running correctly

Best Practices for Watchtower Notifications

Keep Notifications Useful, Not Noisy

  • Too many alerts → you ignore them
  • Too few → you miss issues

Use notification levels wisely.

Use Separate Channels

  • Discord channel for updates
  • Telegram for critical alerts

This keeps things organized.

Test Your Setup

After configuration, force an update or restart a container. Make sure notifications trigger as expected.

Combine with Scheduling

Notifications become more meaningful when combined with controlled update timing.

Why Notifications Matter More Than You Think

Without notifications, automation can become risky. You are updating containers, but:

  • Did it succeed?
  • Did something break?
  • Is everything running fine?

Notifications close that gap. They turn Watchtower from a background tool into a visible, reliable system.

Conclusion

Setting up watchtower docker notifications is one of the simplest upgrades you can make to your Docker workflow, and one of the most impactful. With just a few environment variables, you gain:

  • real-time visibility
  • faster issue detection
  • better operational confidence

Start with Discord or Telegram, keep the setup clean, and build from there.

FAQ Section


1. Does Watchtower support multiple notification services at once?

Yes, but you will need to configure multiple URLs properly using supported formats.

2. Why are my Discord notifications not working?

Most likely due to incorrect webhook formatting. Make sure you are using the discord:// format, not the raw URL.

3. Can I customize Watchtower notification messages?

Yes, using WATCHTOWER_NOTIFICATION_TEMPLATE.

4. Is Telegram better than Discord for notifications?

Depends on preference. Telegram is better for private alerts, while Discord works well for team environments.

5. Do notifications work without automatic updates?

No. Notifications are triggered by Watchtower actions like updates or checks.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top