tg-newsmaker/docker-compose.yaml
bvn13 c53e58baf1 Add dynamic subscription management via Telegram commands
- Config: atomic JSON writes, stable rule ids + enabled flag with backfill,
  list/add/remove/set_enabled methods
- Bot: admin whitelist (TG_ADMIN_IDS), gate admin commands, new !sub
  list/add/del/on/off commands, skip disabled rules on forward
- main/compose: read TG_ADMIN_IDS from environment

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-23 14:30:18 +03:00

30 lines
629 B
YAML

version: '3.3'
name: tg-newsmaker
services:
bot:
# build: ./
image: localhost:5001/tg-newsmaker:${APP_VERSION}
environment:
- TG_OWNER_ID=258985362
- TG_ADMIN_IDS=${TG_ADMIN_IDS:-}
- CONFIG_FILE=/mnt/config.json
- SESSION_FILE=/mnt/newsmaker.session
- TG_APP_ID=${TG_APP_ID}
- TG_APP_HASH=${TG_APP_HASH}
restart: always
volumes:
- ${CONFIG_FILE}:/mnt/config.json
- ${SESSION_FILE}:/mnt/newsmaker.session
secrets:
- tg_app_id
- tg_app_hash
secrets:
tg_app_id:
environment: "TG_APP_ID"
tg_app_hash:
environment: "TG_APP_HASH"