[go: up one dir, main page]

Skip to content

DockerBot is a Telepot powerd, easy to use Telegram bot written in python that runs as Docker Container.

License

Notifications You must be signed in to change notification settings

t0mer/dockerbot

Repository files navigation

Please ⭐ this repo if you find it useful


PayPal

DockerBot

DockerBot is a Telepot powerd, easy to use Telegram bot written in python that runs as Docker Container. With DockerBot you can:

  • List Exsisting Containers (and get status).
  • Start, Stop and Restart Containers.
  • Run SpeedTest.
  • Get Memory Status (Used, Free, etc.)
  • Get Disk Status.
  • Get Server Time.
  • Get Server Real (External) IP.

Credits:

=======

Usage

Run from hub

docker-compose from hub

version: "3.7"

services:
  dockerbot:
    image: techblog/dockerbot
    container_name: dockerbot
    network_mode: host
    cap_add:
       - NET_ADMIN
    privileged: true
    restart: always
    environment:
      - API_KEY=  #Required
      - ALLOWED_IDS= #Required
    volumes:
       - /var/run/docker.sock:/var/run/docker.sock

Replace API_KEY with your bot token. if you do not have existing bot you can create one using the instruction in this article: Bots: An introduction for developers

In order to secure the bot and block unwanted calls from Unauthorized users add your allowd Id's with comma separated values into ALLOWED_IDS environmet. in order to get your id use @myidbot in telegram and send the /getid command. the result will be your ID:

Get your ID

Screenshots

Get Containers List

Show Disk Info

Run Speed Test

About

DockerBot is a Telepot powerd, easy to use Telegram bot written in python that runs as Docker Container.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages