Sign inSign up

flexpool/containerwatch

By flexpool

•Updated about 6 years ago

Docker container notifications

Image
0

1M+

flexpool/containerwatch repository overview

⁠Containerwatch

Containerwatch is a daemon that automatically checks the Docker events and sends the notifications.

⁠Supported events

  • die - Container shutdown
  • create - Container created

⁠Supported Platforms

  • Discord
  • Slack

⁠Usage

Start the Containerwatch as a Docker container by running:

docker run -d --name containerwatch \
  # If DISCORD
 -e CW_WEBHOOK_TYPE=discord \
 -e CW_DISCORD_WEBHOOK=<your discord webhook> \ 
 -e CW_DISCORD_USERNAME=<optional> \
 # Else If Slack
 -e CW_WEBHOOK_TYPE=slack \
 -e CW_SLACK_WEBHOOK=<your slack webhook> \ 
 # End if
 -v /var/run/docker.sock:/var/run/docker.sock \ # Pass Docker Daemon API socket
 flexpool/containerwatch

After that you should see the startup notification.

⁠Environment Variables

  • Any

    • CW_WEBHOOK_TYPE - Discord or Slack ("discord", "slack")
  • Discord

    • CW_DISCORD_WEBHOOK - A Discord HTTP webhook. Required.
    • CW_DISCORD_USERNAME - Choose custom Discord username. Optional.
  • Slack

    • CW_SLACK_WEBHOOK - A Slack HTTP webhook. Required.

Tag summary

Content type

Image

Digest

Size

7.7 MB

Last updated

about 6 years ago

docker pull flexpool/containerwatch