ConfigurationTriggersMattermost
Mattermost
The mattermost trigger posts container update notifications to a Mattermost incoming webhook.
The mattermost trigger posts container update notifications to a Mattermost incoming webhook.
Variables
| Env var | Required | Description | Supported values | Default value when missing |
|---|---|---|---|---|
DD_TRIGGER_MATTERMOST_{trigger_name}_URL | 🔴 | Incoming webhook URL | http, https URL | |
DD_TRIGGER_MATTERMOST_{trigger_name}_CHANNEL | ⚪ | Target channel override | Channel name (for example town-square) | |
DD_TRIGGER_MATTERMOST_{trigger_name}_USERNAME | ⚪ | Username shown in message | String | drydock |
DD_TRIGGER_MATTERMOST_{trigger_name}_ICONEMOJI | ⚪ | Emoji icon shown for sender | Emoji string (for example :whale:) | |
DD_TRIGGER_MATTERMOST_{trigger_name}_ICONURL | ⚪ | Avatar icon URL shown for sender | http, https URL | |
DD_TRIGGER_MATTERMOST_{trigger_name}_DISABLETITLE | ⚪ | Disable title to keep full message-body control | true, false | false |
This trigger also supports the common configuration variables.
See the Mattermost incoming webhooks documentation for endpoint setup details.
Examples
services:
drydock:
image: codeswhat/drydock
...
environment:
- DD_TRIGGER_MATTERMOST_LOCAL_URL=https://mattermost.example.com/hooks/abc123
- DD_TRIGGER_MATTERMOST_LOCAL_CHANNEL=town-square
- DD_TRIGGER_MATTERMOST_LOCAL_USERNAME=drydockdocker run \
-e DD_TRIGGER_MATTERMOST_LOCAL_URL="https://mattermost.example.com/hooks/abc123" \
-e DD_TRIGGER_MATTERMOST_LOCAL_CHANNEL="town-square" \
-e DD_TRIGGER_MATTERMOST_LOCAL_USERNAME="drydock" \
...
codeswhat/drydock