Skip to content

Latest commit

 

History

History
54 lines (39 loc) · 939 Bytes

INSTALL-2.md

File metadata and controls

54 lines (39 loc) · 939 Bytes

docker-compose: build your own docker container

Prerequisites

Instructions

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

services:
  tg-captcha-bot:
    build:
      context: .
      dockerfile: Dockerfile
    image: tg-captcha-bot:latest
    volumes:
      - ./config.toml:/config.toml
    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