TeleBotDown / docker-compose.yml
RYUK999's picture
Rollback files to commit 6b019998
adc6b45
Raw History Blame Contribute Delete
783 Bytes
version: '3.8'
services:
# Local Telegram Bot API server to unlock 2 GB limits
bot-api:
image: aiogram/telegram-bot-api:latest
environment:
TELEGRAM_API_ID: ${TELEGRAM_API_ID}
TELEGRAM_API_HASH: ${TELEGRAM_API_HASH}
TELEGRAM_LOCAL: "true"
volumes:
- bot-api-data:/var/lib/telegram-bot-api
restart: unless-stopped
# Main Python Telegram Bot
bot:
build: .
env_file: .env
environment:
BOT_TOKEN: ${BOT_TOKEN}
BOT_API_URL: http://bot-api:8081/bot
BOT_API_FILE_URL: http://bot-api:8081/file/bot
volumes:
- ./downloads:/app/downloads
- ./cookies.txt:/app/cookies.txt:ro # Mounts cookies safely if available
depends_on:
- bot-api
restart: unless-stopped
volumes:
bot-api-data: