Files
x-newsletter/docker/docker-compose.yml
ksalk b3643fd5b0 Initial commit: Daily tech newsletter worker
A Node.js/TypeScript worker that sends daily AI-generated summaries
of tech news from X/Twitter via Nitter RSS feeds.

Features:
- Fetches tweets from 40+ curated tech accounts via Nitter RSS
- Filters and categorizes by topic (AI/ML, SWE, General Tech)
- Generates AI summaries using OpenRouter (Claude/GPT-4)
- Sends professional HTML email via Brevo SMTP
- Runs on cron schedule inside Docker container
- Instance rotation for Nitter reliability
- Graceful degradation if AI fails

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-11 20:23:38 +00:00

32 lines
641 B
YAML

version: '3.8'
services:
newsletter-worker:
build:
context: ..
dockerfile: docker/Dockerfile
container_name: x-newsletter
restart: unless-stopped
env_file:
- ../.env
environment:
- NODE_ENV=production
- TZ=${CRON_TIMEZONE:-Europe/Warsaw}
volumes:
# Optional: persist logs
- ../logs:/app/logs
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
# Resource limits
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
reservations:
cpus: '0.25'
memory: 256M