File size: 690 Bytes
fc82490 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | services:
bot:
build: .
env_file: .env
environment:
TELEGRAM_API_BASE_URL: ${TELEGRAM_API_BASE_URL:-http://local-bot-api:8081}
TELEGRAM_LOCAL_MODE: ${TELEGRAM_LOCAL_MODE:-true}
ports:
- "7860:7860"
volumes:
- telesave_tmp:/tmp/telesave
depends_on:
- local-bot-api
local-bot-api:
image: aiogram/telegram-bot-api:latest
environment:
TELEGRAM_API_ID: ${TELEGRAM_API_ID}
TELEGRAM_API_HASH: ${TELEGRAM_API_HASH}
command:
- --local
- --http-port=8081
- --dir=/var/lib/telegram-bot-api
volumes:
- telegram_bot_api:/var/lib/telegram-bot-api
volumes:
telesave_tmp:
telegram_bot_api:
|