Skip to content

Script that send the logs of docker containers to discord via the webhook api.

License

Notifications You must be signed in to change notification settings

1RandomDev/docker-discord-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-discord-logger

Script that logs the output of docker containers to discord via the webhook api.

Installation

Docker CLI:

docker run -d --name=docker-discord-logger \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -e WEBHOOK_URL=<discord webhook url> \
    ghcr.io/1randomdev/docker-discord-logger:latest

Docker Compose:

version: "3.4"

services:
  docker-discord-logger:
    container_name: docker-discord-logger
    image: ghcr.io/1randomdev/docker-discord-logger:latest
    network_mode: bridge
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      - WEBHOOK_URL=<discord webhook url>
    restart: unless-stopped

Monitoring containers

To monitor a container add the label discord-logger.enabled=true via the option --label.

Build it yourself

git clone https://github.com/1RandomDev/docker-discord-logger.git && cd docker-discord-logger
docker build --tag docker-discord-logger:latest .

About

Script that send the logs of docker containers to discord via the webhook api.

Resources

License

Stars

Watchers

Forks

Packages