https://github.com/algorithmalchemy/aiogram-docker-multi-container
Duplicating multiple copies of the bot with the original keys. Reads the key file and runs separate Docker containers for each.
https://github.com/algorithmalchemy/aiogram-docker-multi-container
aiogram aiogram-cloner aiogram-docker aiogram-docker-sample aiogram-docker-template aiogram-template cloner docker key-management parallel-execution scalable-bot template
Last synced: 3 months ago
JSON representation
Duplicating multiple copies of the bot with the original keys. Reads the key file and runs separate Docker containers for each.
- Host: GitHub
- URL: https://github.com/algorithmalchemy/aiogram-docker-multi-container
- Owner: AlgorithmAlchemy
- Created: 2024-10-10T03:48:35.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-09-20T20:55:53.000Z (3 months ago)
- Last Synced: 2025-09-20T22:21:43.658Z (3 months ago)
- Topics: aiogram, aiogram-cloner, aiogram-docker, aiogram-docker-sample, aiogram-docker-template, aiogram-template, cloner, docker, key-management, parallel-execution, scalable-bot, template
- Language: Python
- Homepage:
- Size: 102 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Aiogram Telegram Bot in Docker
`⭐️ Thanks everyone who has starred the project, it means a lot!`
## Description
This is an example of a bot built on the Aiogram library, packaged in a Docker container for easy deployment and management. The bot features both a regular button keyboard and inline buttons for user interaction. The main goal of the project is to enable running multiple bot instances with different tokens in separate containers for scalability and convenient management.
**Read this in other languages:** [Русский (README\_ru.md)](README_ru.md)
## Bot Features
- Regular button keyboards for text communication
- Inline buttons with callback responses
- Convenient bot management via Docker
- Support for multiple bots using separate containers for each token
## Requirements
- Python 3.7+
- Docker
- `api_keys.txt` file with bot tokens
## Installation
1. **Clone the repository:**
```
git clone https://github.com/your-repo/aiogram-docker-sample.git
cd aiogram-docker-sample
```
2. **Create Docker image:**
Run the command to build the Docker image for the bot:
```
docker build -t aiogram_bot_image .
```
## **Main Commands:**
#### Start all bots:
python run_bots.py
#### Stop all bots:
python stop_bots.py
#### Check active containers:
docker ps
#### View container logs:
docker logs
#### Stop a specific container:
docker stop