Ntfy: Watchtower, How to set it up with portainer?

Well, it’s easy, let get this start,

Example:

Watchtower Docker-compose

version: "3"
services:
  watchtower:
    image: containrrr/watchtower
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - stack.env
      
WATCHTOWER_SCHEDULE=* 22 * * *
WATCHTOWER_NOTIFICATIONS=shoutrrr
WATCHTOWER_NOTIFICATION_SKIP_TITLE=True
WATCHTOWER_NOTIFICATION_URL=ntfy://ntfy.sh/my_watchtower_topic?title=WatchtowerUpdates

Then the second file is a stack.env, make sure it is a same path.

WATCHTOWER_SCHDULE: cron job I choose at night, so I can work on the server without being outrage services.

WATCHTOWER_NOTIFICATIONS: We use Shoutrrr

WATCHTOWER_NOTIFICATION_SKIP_TITLE: True (I leave it as default)

WATCHTOWER_NOTIFICATION_URL: ntfy://ntfy.sh/my_watchtower_topic?title=WatchtowerUpdates

After you run, you should get a notification from your ntfy app or your ntfy browser.


Comments

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.