ConfigurationTriggersDiscord
Discord
The discord trigger lets you send realtime notifications using Discord bots.
![]()
The discord trigger lets you send realtime notifications using Discord bots.
Variables
| Env var | Required | Description | Supported values | Default value when missing |
|---|---|---|---|---|
DD_TRIGGER_DISCORD_{trigger_name}_URL | 🔴 | The Discord webhook URL | HTTPS URL | |
DD_TRIGGER_DISCORD_{trigger_name}_BOTUSERNAME | ⚪ | The bot username | drydock | |
DD_TRIGGER_DISCORD_{trigger_name}_CARDCOLOR | ⚪ | Color of the message card | Color in decimal base | 65280 |
DD_TRIGGER_DISCORD_{trigger_name}_CARDLABEL | ⚪ | Optional label to display in the message | String |
This trigger also supports the common configuration variables.
Examples
Configuration
services:
drydock:
image: codeswhat/drydock
...
environment:
- DD_TRIGGER_DISCORD_1_URL=https://discord.com/api/webhooks/123/456
- DD_TRIGGER_DISCORD_1_BOTUSERNAME=drydockdocker run \
-e DD_TRIGGER_DISCORD_1_URL="https://discord.com/api/webhooks/123/456" \
-e DD_TRIGGER_DISCORD_1_BOTUSERNAME="drydock" \
...
codeswhat/drydock