Issues setting up notifications for discord #1688
Answered
by
piksel
jlengelbrecht
asked this question in
Q&A
-
Tried setting up notifications for discord but I keep getting either a 400 bad request or invalid slack token format. My setup is as follows:
docker-compose.ymlversion: "3"
services:
watchtower:
image: containrrr/watchtower
container_name: watchtower
restart: unless-stopped
environment:
- WATCHTOWER_NOTIFICATIONS=slack
- WATCHTOWER_NOTIFICATION_SLACK_HOOK_URL=$DISCORD_WEBHOOK
- WATCHTOWER_NOTIFICATION_SLACK_IDENTIFIER=Watchtower-Monitoring1
- TZ=America/New_York
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_INCLUDE_STOPPED=true
- WATCHTOWER_POLL_INTERVAL=3600
- WATCHTOWER_REVIVE_STOPPED=true
volumes:
- /var/run/docker.sock:/var/run/docker.sock .env
|
Beta Was this translation helpful? Give feedback.
Answered by
piksel
Jul 5, 2023
Replies: 1 comment
-
It looks like you are using a shoutrrr URL with the slack legacy notification adapter, which won't work. Just use shoutrrr directly and it should work: environment:
- WATCHTOWER_NOTIFICATIONS=shoutrrr # this is implied and can be removed though
- WATCHTOWER_NOTIFICATION_URL=$DISCORD_WEBHOOK |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jlengelbrecht
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It looks like you are using a shoutrrr URL with the slack legacy notification adapter, which won't work. Just use shoutrrr directly and it should work: