DrydockDrydock
ConfigurationTriggersApprise

Apprise

The apprise trigger lets you send container update notifications via the Apprise API.

logo

The apprise trigger lets you send container update notifications via the Apprise API.

Variables

Env varRequiredDescriptionSupported valuesDefault value when missing
DD_TRIGGER_APPRISE_{trigger_name}_URL🔴The Base URL of the Apprise API
DD_TRIGGER_APPRISE_{trigger_name}_URLSThe comma separated list of Apprise service urlsSee the list of the supported Apprise notification URLs
DD_TRIGGER_APPRISE_{trigger_name}_CONFIGThe name of an Apprise yaml configurationSee Apprise persistent configuration documentation
DD_TRIGGER_APPRISE_{trigger_name}_TAGThe optional tags(s) to expand when using an Apprise yaml configurationSee Apprise persistent configuration documentation
This trigger also supports the common configuration variables.

Examples

Send a Mail & an SMS

services:
  drydock:
    image: codeswhat/drydock
    ...
    environment:
      - DD_TRIGGER_APPRISE_LOCAL_URL=http://apprise:8000
      - DD_TRIGGER_APPRISE_LOCAL_URLS=mailto://john.doe:[email protected],sns://AHIAJGNT76XIMXDBIJYA/bu1dHSdO22pfaaVy/wmNsdljF4C07D3bndi9PQJ9/us-east-2/+1(800)555-1223
docker run \
  -e DD_TRIGGER_APPRISE_LOCAL_URL="http://apprise:8000" \
  -e DD_TRIGGER_APPRISE_LOCAL_URLS="mailto://john.doe:[email protected],sns://AHIAJGNT76XIMXDBIJYA/bu1dHSdO22pfaaVy/wmNsdljF4C07D3bndi9PQJ9/us-east-2/+1(800)555-1223" \
  ...
  codeswhat/drydock

Use a persistent YAML configuration

Declare a YAML Apprise configuration (see here) ; let's call it dd.yml for example.

# dd.yml example
urls:
  - tgram://{bot_token}/{chat_id}:
    - tag: devops
services:
  drydock:
    image: codeswhat/drydock
    ...
    environment:
      - DD_TRIGGER_APPRISE_LOCAL_URL=http://apprise:8000
      - DD_TRIGGER_APPRISE_LOCAL_CONFIG=drydock # the name of the yaml config file
      - DD_TRIGGER_APPRISE_LOCAL_TAG=devops # the tags to use with the config (optional)
docker run \
  -e DD_TRIGGER_APPRISE_LOCAL_URL="http://apprise:8000" \
  -e DD_TRIGGER_APPRISE_LOCAL_CONFIG="drydock" \
  -e DD_TRIGGER_APPRISE_LOCAL_TAG="devops" \
  ...
  codeswhat/drydock

How to run the Apprise API?

Just run the official Apprise Docker image.

For more information, check out the official Apprise API documentation.

services:
  apprise:
    image: caronc/apprise
    container_name: apprise
docker run caronc/apprise

On this page