Skip to content

Latest commit

 

History

History
52 lines (39 loc) · 977 Bytes

INSTALL-2.md

File metadata and controls

52 lines (39 loc) · 977 Bytes

docker-compose: build your own docker container

Prerequisites

Instructions

  1. Clone the repo
git clone https://github.com/momai/tg-captcha-bot.git
cd tg-captcha-bot
  1. Add a token from BotFather to env variable in docker-compose.yml

services:
  tg-captcha-bot:
    build:
      context: .
      dockerfile: Dockerfile
    image: tg-captcha-bot:latest
    volumes:
      - ./config.toml:/config.toml
      - ./help_message.txt:/help_message.txt
    restart: unless-stopped
    environment:
      TGTOKEN: <your_telegram_bot_token_here>
  1. Build a Docker container
docker compose build
  1. Run the container
docker compose up -d
  1. Check that the bot started correctly
docker compose ps
docker compose logs
  1. Add the bot to your supergroup and give it administrator privileges