Deploy ChangeDetection.io on Docker: 6 Months Monitoring Website Changes and Prices in My HomeLab

HomeLab tutorial - IT technology blog
HomeLab tutorial - IT technology blog

Approach Comparison

Six months ago, I got tired of refreshing product pages manually. I needed a reliable way to track GPU inventory, second-hand server deals on eBay, and release notes across dozens of vendor sites. In practice, automated change tracking boils down to three distinct paths:

  • Custom Python Scrapers (BeautifulSoup / Playwright + Cron): You get total control over headers, proxies, and parsing. But maintenance is relentless. Writing bespoke scripts for 30 different storefronts turns into a second job. One minor CSS tweak upstream breaks your parser, and suddenly you are spending Sunday afternoon debugging broken XPath selectors instead of hacking on fun lab projects.
  • Commercial SaaS Trackers (Visualping, Distill.io, Wachete): SaaS tools offer slick interfaces and point-and-click element pickers. Because checks run on their cloud IPs, your home network stays off blocklists. The catch? Aggressive paywalls. Free plans rarely allow more than 5 to 10 targets checked once every 24 hours. Bumping that to 5-minute intervals across 50 targets easily runs $30 to $50 every month.
  • Self-Hosted ChangeDetection.io: Running ChangeDetection.io on your own hardware hits the sweet spot. You get a clean web UI, a REST API, interactive visual element pickers, and native diffing for text, JSON, and PDFs. Because it embeds Apprise, it integrates directly with over 80 notification channels out of the box. Connect a headless Chromium container, and you can render heavy client-side JavaScript apps just like an expensive commercial tier.

Pros and Cons

After six months of 24/7 uptime on an Intel N100 mini PC, the real-world advantages and edge cases have become very obvious.

The Good

  • Zero Recurring Costs: I currently poll 84 endpoints every 15 minutes. The total bill? A negligible bump of around 8W on my home power meter.
  • Precise Diff Engines: You rarely want a raw HTML alert. ChangeDetection.io lets you isolate exact elements like span.price, strip out noisy timestamps, and trigger visual screenshot overlays when layouts shift.
  • Zero-Fuss Alerting: Apprise handles the plumbing. Dropping in a single URI string routes notifications straight to Telegram, Discord, Gotify, or an email inbox without extra middleware.
  • Scriptable Automation: A straightforward REST API makes it easy to add new watches automatically from shell scripts or home automation webhooks.

The Trade-offs

  • Browser RAM Overhead: The core Python app is lightweight, idling at roughly 95 MB RAM. But headless Chromium is hungry. When rendering heavy single-page apps, concurrent browser instances can briefly spike memory usage to 1.5 GB or 2 GB.
  • Bot Protection Roadblocks: Scanning commercial storefronts from a residential IP will inevitably trigger Cloudflare Turnstile or Akamai challenges. To dodge HTTP 403 blocks, you must add random scan jitter, customize user-agent strings, or route stubborn targets through a rotating proxy.

Recommended Setup

For production stability, stick to a two-container Docker Compose architecture: the ChangeDetection.io core app paired with a dedicated Playwright-driven Chromium container (Sockpuppetbrowser). This offloads heavy DOM rendering to an isolated sandbox, preventing browser crashes from taking down your watch database.

I also cap concurrent browser processes at 3. That limit prevents traffic bursts from pegging the host CPU at 100%.

System Requirements

  • CPU: 2 cores minimum (x86_64 or ARM64 boards like a Raspberry Pi 5).
  • Memory: 2 GB RAM for basic HTML scraping; 4 GB recommended if you render JavaScript-heavy storefronts.
  • Disk: 10 GB to 15 GB of storage to retain historical visual diffs and full-page snapshots.
  • Docker Engine: Docker 24.x+ and Docker Compose v2.

Implementation Guide

Here is how to deploy ChangeDetection.io with Docker Compose, link browser rendering, and verify your notification pipeline.

Step 1: Set Up Directory Structure

Create a dedicated directory to store application data and persistent state:

mkdir -p ~/homelab/changedetection/datadir
cd ~/homelab/changedetection

Step 2: Create docker-compose.yml

Write your compose definition to disk:

cat <<'EOF' > docker-compose.yml
services:
  changedetection:
    image: ghcr.io/dgtlmoon/changedetection.io:latest
    container_name: changedetection
    hostname: changedetection
    restart: unless-stopped
    environment:
      - PLAYWRIGHT_DRIVER_URL=ws://sockpuppetbrowser:3000
      - BASE_URL=http://192.168.1.50:5000
      - HIDE_REFERER=true
    volumes:
      - ./datadir:/datastore
    ports:
      - "5000:5000"
    depends_on:
      - sockpuppetbrowser

  sockpuppetbrowser:
    image: dgtlmoon/sockpuppetbrowser:latest
    container_name: sockpuppetbrowser
    hostname: sockpuppetbrowser
    restart: unless-stopped
    environment:
      - SCREEN_WIDTH=1920
      - SCREEN_HEIGHT=1080
      - SCREEN_DEPTH=16
      - MAX_CONCURRENT_CHROME_PROCESSES=3
    cap_add:
      - SYS_ADMIN
EOF

Remember to update BASE_URL with your server’s static IP or local DNS name. If you skip this, notification links will point back to an invalid address.

Step 3: Launch the Stack

Start both containers in the background:

docker compose up -d

Check the process status to make sure neither service exited unexpectedly:

docker compose ps

Tail the application logs to confirm the connection to the browser instance:

docker logs -f changedetection

Step 4: Initial Configuration and First Watch

  1. Open your browser and navigate to http://<your-server-ip>:5000.
  2. Head to Settings > General. Set strong admin credentials under Password Protection before exposing the dashboard to your LAN.
  3. Open Settings > Notifications to configure alert webhooks. For Discord, use discord://webhook_id/webhook_token. For Telegram, enter tgram://bot_token/chat_id. Click Send Test Notification to make sure your ping goes through.
  4. Click + Add Watch on the main dashboard to create a monitor:
    • URL: Paste the target product or documentation page.
    • Time Between Checks: Pick a reasonable interval, such as 15m or 1h. Aggressive 30-second intervals will get your home IP banned quickly.
    • Request tab: Switch Fetch Backend to WebDriver Chrome/Javascript (Chromium/Playwright) whenever you are tracking React, Vue, or dynamic price widgets.
    • Filters & Triggers tab: Under CSS/XPath Filters, isolate targeted selectors like span.current-price or div#release-notes. Filtering isolates signal from noise and stops nuisance alerts caused by rotating footer ads or comment counters.

Step 5: Verifying Operational Stability

Once you save the watch, click Recheck to force an initial scrape. When the scan status turns blue, click Diff to inspect the parsed text or screenshot comparison. That is all it takes. Your home server will now monitor price shifts and code updates quietly in the background.

Share: