This app is a Rust-based RSS-to-Telegram bot. It monitors multiple RSS/Atom feeds and automatically forwards new entries to a specified Telegram chat. Key features include:
.env file)..env FileCreate a .env file in your project directory:
RSSBOT_TELEGRAM_TOKEN=your_bot_token_here
RSSBOT_TELEGRAM_CHAT_ID=your_chat_id_here
RSSBOT_FEEDS=https://example.com/feed1.xml,https://example.com/feed2.xml
RSSBOT_DEDUP_LIMIT=200
RSSBOT_POLL_EVERY_MINUTES=5
RSSBOT_STATE_FILE=state.json
Place main.rs and docker-compose.yml in the same directory. Then run:
docker-compose build
docker-compose up
or use following command to run as a daemon:
docker-compose up -d
./data (host) mapped to /app/data (container).docker-compose logs -f
docker-compose.ymlservices:
rss-bot:
image: pandreyn/rss-bot:latest
restart: unless-stopped # for debuginng it can be set to "no"
env_file: .env
volumes:
- ./data:/app/data
logging:
driver: json-file
options:
max-size: 10m
max-file: "5"
environment:
# Optional: control log format and verbosity
- RSSBOT_RUST_LOG=rss_bot=info,reqwest=warn
# Uncomment for JSON logs (for Loki/ELK/etc)
# - RSSBOT_RUST_LOG_FORMAT=json
healthcheck:
test: ["CMD", "sh", "-c", "test -s /app/state.json || exit 1"]
interval: 30s
timeout: 5s
retries: 3
Content type
Image
Digest
sha256:c7881cac2…
Size
7.3 MB
Last updated
12 months ago
docker pull pandreyn/rss-bot