Sign inSign up

termitkin/notification-telegram-bot

By termitkin

Updated over 4 years ago

Image
0

147

termitkin/notification-telegram-bot repository overview

Notification telegram bot

The message must be sent in the body in the text field or in the header x-text

Example of docker-compose.yml
version: "3"

services:
  notification-telegram-bot:
    image: termitkin/notification-telegram-bot
    container_name: notification-telegram-bot
    restart: unless-stopped
    ports:
      - "5000:3000"
    environment:
      - TELEGRAM_BOT_TOKEN
      - TELEGRAM_BOT_CHAT_ID
    env_file:
      - .env
Example of .env
TELEGRAM_BOT_TOKEN=token
TELEGRAM_BOT_CHAT_ID=chatId
Example of nginx block
# Notification telegram bot
location ^~ /notification-telegram-bot/bot-token {
    proxy_pass http://0.0.0.0:5000/;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection 'upgrade';
    proxy_set_header Host $host;
    proxy_cache_bypass $http_upgrade;
}
Docker build
docker build -t termitkin/notification-telegram-bot:latest .
Run docker container
docker pull termitkin/termitkin/notification-telegram-bot:latest && docker-compose up -d

Tag summary

Content type

Image

Digest

Size

124.1 MB

Last updated

over 4 years ago

docker pull termitkin/notification-telegram-bot