Hey, my team of opensourcers is using discord instead of slack, would there be an option to have discord integration as addition next to slack?
Hi,
Using watchtower slack option with discord webhook and adding "/slack" at the end of the discord webhook should work.
But maybe, you want more customizations.
could you give an example that works?
I'm using docker compose.
add this in evironment vars
environment:
WATCHTOWER_NOTIFICATIONS: slack
WATCHTOWER_NOTIFICATION_SLACK_HOOK_URL: "https://discordapp.com/api/webhooks/{{your_discord_hook}}/slack"
Or with docker look at the documentation
just use your discord web hook and add "/slack" at the end of the url
this is my bash file i use to create watchtower:
#!/usr/bin/env bash
dockername=watchtower
dockerimage="v2tec/watchtower"
dockernetwork=br_0
docker stop $dockername
docker rm $dockername
docker rmi $dockerimage
docker create \
--name $dockername \
--hostname=$dockername \
--net=$dockernetwork \
--ip=172.20.0.254 \
-v /var/run/docker.sock:/var/run/docker.sock \
-e WATCHTOWER_NOTIFICATIONS=slack \
-e WATCHTOWER_NOTIFICATION_SLACK_HOOK_URL="https://discordapp.com/api/webhooks/xxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/slack" \
v2tec/watchtower \
--cleanup --notifications-level=info
docker update --restart=always $dockername
docker start $dockername
The only thing i really mis, is an option to identify my different watchtowers in discord
You can have different webhooks with different pictures to identify the watchtower that is sending notifications.
It seems that the name will always be 'watchtower', but the picture is based on your discord weebhook configuration.
I believe this issue has been resolved for now. Closing. Feel free to get in touch if the suggested solution doesn鈥檛 solve your problem.
Most helpful comment
I'm using docker compose.
add this in evironment vars
environment:WATCHTOWER_NOTIFICATIONS: slackWATCHTOWER_NOTIFICATION_SLACK_HOOK_URL: "https://discordapp.com/api/webhooks/{{your_discord_hook}}/slack"Or with docker look at the documentation
just use your discord web hook and add "/slack" at the end of the url