Microsoft Teams Notifications¶
Deprecated Teams Notification Option
The following legacy Teams notification option is deprecated and subject to removal with the release of Watchtower v2:
Use the notification-url configuration option with a teams:// Shoutrrr URL instead.
Overview¶
Watchtower can use Shoutrrr's Teams service to send Microsoft Teams notifications.
Examples¶
services:
watchtower:
image: ghcr.io/sidneyojr/watchtower:latest
environment:
WATCHTOWER_NOTIFICATION_URL: "teams://?host=https%3A%2F%2Fprod-00.westus.logic.azure.com%3A443%2Fworkflows%2Fabc123%2Ftriggers%2Fmanual%2Fpaths%2Finvoke%3Fapi-version%3D2016-06-00%26sp%3D%2Ftriggers%2Fmanual%2Frun%26sv%3D1.0%26sig%3DXXXXXXXX&title=Alert"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
docker run -d \
--name watchtower \
-v /var/run/docker.sock:/var/run/docker.sock \
ghcr.io/sidneyojr/watchtower \
--notification-url "teams://?host=https%3A%2F%2Fprod-00.westus.logic.azure.com%3A443%2Fworkflows%2Fabc123%2Ftriggers%2Fmanual%2Fpaths%2Finvoke%3Fapi-version%3D2016-06-00%26sp%3D%2Ftriggers%2Fmanual%2Frun%26sv%3D1.0%26sig%3DXXXXXXXX&title=Alert"
The following legacy Microsoft Teams examples are deprecated and will be removed with the release of Watchtower v2.
services:
watchtower:
image: ghcr.io/sidneyojr/watchtower:latest
environment:
WATCHTOWER_NOTIFICATIONS: msteams
WATCHTOWER_NOTIFICATION_MSTEAMS_HOOK_URL: "https://prod-00.westus.logic.azure.com:443/workflows/abc123/triggers/manual/paths/invoke?api-version=2016-06-00&sp=/triggers/manual/run&sv=1.0&sig=XXXXXXXX"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
docker run -d \
--name watchtower \
-v /var/run/docker.sock:/var/run/docker.sock \
-e WATCHTOWER_NOTIFICATIONS=msteams \
-e WATCHTOWER_NOTIFICATION_MSTEAMS_HOOK_URL="https://prod-00.westus.logic.azure.com:443/workflows/abc123/triggers/manual/paths/invoke?api-version=2016-06-00&sp=/triggers/manual/run&sv=1.0&sig=XXXXXXXX" \
ghcr.io/sidneyojr/watchtower
docker run -d \
--name watchtower \
-v /var/run/docker.sock:/var/run/docker.sock \
ghcr.io/sidneyojr/watchtower \
--notifications msteams \
--notification-msteams-hook "https://prod-00.westus.logic.azure.com:443/workflows/abc123/triggers/manual/paths/invoke?api-version=2016-06-00&sp=/triggers/manual/run&sv=1.0&sig=XXXXXXXX"