Skip to content

O projeto tem como intuito obter os status de containers do docker e notificar através do telegram.

License

Notifications You must be signed in to change notification settings

khalleb/notifier-container-docker

Repository files navigation

Notifier Container Docker


Language count Made by Khalleb GitHub last commit License

Sobre   |   Requisito   |   Configuração   |   Uso   |   Imagens  


🎯 Sobre

O projeto tem como intuito obter os status de containers do docker e notificar através do TELEGRAM.

⚙️ Requisito

🛠️ Configuração

Crie o arquivo .env e informe:

  • token: Token de autorização do Telegram.
  • to: Identificador único para o chat. Como gerar token: Telegram Bot API
  DRIVER_MESSAGE=telegram

  TELEGRAM_BOT_TOKEN=
  TELEGRAM_CHAT_ID=

  CONTAINER_FILTER=

  LOG_PATH=

  IDENTIFIED=

Filtro para ignorar containers

  CONTAINER_FILTER=!redis,!postgres

Filtro para containers

  CONTAINER_FILTER=postgres,redis

🚀 Uso

# Clone this project
$ git clone https://github.com/khalleb/notifier-container-docker.git

# Access
$ cd notifier-container-docker

# Permissão ao arquivo
chmod +x build.sh

# Build project
$ ./build.sh

# Run the project
$ yarn start

🖼️ Imagens

Image telegram one Image telegram two