Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
World desk5 min

How to Run urlwatch in Docker and Persist Its Configuration

Persist urlwatch’s jobs, configuration, hooks, and cache with a host bind mount, then run it using Docker Compose or docker run.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To keep urlwatch’s jobs, settings, hooks, and change-detection cache when its Docker container is replaced, bind-mount a host directory to /data/urlwatch. The mjaschen/urlwatch-docker project uses ./data:/data/urlwatch in its Compose example. Put urls.yaml, urlwatch.yaml, and any hooks.py in that host directory; the cache file, cache.db, belongs there too.

What persists, and why

A container’s writable filesystem is not the right place for data you need to keep across container recreation. The Docker project’s examples make the host-side data directory the durable working area by mounting it at /data/urlwatch. Keep the mount in place and preserve the host directory when updating or recreating the container.

As an Amazon Associate I earn from qualifying purchases.

The scheduled command documented by the project reads urls.yaml, urlwatch.yaml, hooks.py, and cache.db from that working directory. The cache matters: it holds prior results used to detect changes. Persisting only the YAML files would leave the cache behind in a replaced container.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Prepare urlwatch’s working files

Create the host data directory

mkdir -p data

The Docker project expects monitored jobs in data/urls.yaml. Add jobs using urlwatch’s job syntax; the project points to its example jobs file and urlwatch’s Jobs documentation for details. Those reference URLs are not included here, so check the project README and documentation matching the image you choose rather than copying a job format from another version.

#1 Best Overall
CanaKit Raspberry Pi 5 Starter Kit PRO - Turbine Black (128GB Edition) (8GB RAM)
  • Includes Raspberry Pi 5 with 2.4Ghz 64-bit quad-core CPU (8GB RAM)
  • Includes 128GB Micro SD Card pre-loaded with 64-bit Raspberry Pi OS, USB MicroSD Card Reader
  • CanaKit Turbine Black Case for the Raspberry Pi 5
  • CanaKit Low Noise Bearing System Fan
  • Mega Heat Sink - Black Anodized

Set up configuration and notifications

Copy the project’s data/urlwatch.template.yaml to data/urlwatch.yaml, then configure a reporter, such as SMTP, if you want notifications. Do not put real credentials in a public repository. Reporter-specific settings belong under the report key in urlwatch’s global configuration; the global file also controls general behavior. The urlwatch 2.29 manual documents urlwatch --edit-config as a way to edit the global configuration, but verify compatibility with the version in your selected image.

By default, the documented configuration reports new pages and errors, but not unchanged pages. Its job_defaults section can apply shared settings globally or to selected job kinds, including URL, shell, and browser jobs.

Run it as a Docker Compose service

Use the Compose file supplied by mjaschen/urlwatch-docker, which includes the image’s service configuration and the persistent mount. Its key mapping is ./data:/data/urlwatch. Do not substitute paths from a different urlwatch image: community images may use other working directories.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. From the project directory, make sure the host-side data directory contains urls.yaml and your configured urlwatch.yaml.

    Rank #2
    CanaKit Raspberry Pi 4 4GB Starter PRO Kit - 4GB RAM
    • Includes Raspberry Pi 4 4GB Model B with 1.5GHz 64-bit quad-core CPU (4GB RAM)
    • Includes Pre-Loaded 32GB EVO+ Micro SD Card (Class 10), USB MicroSD Card Reader
    • CanaKit Premium High-Gloss Raspberry Pi 4 Case with Integrated Fan Mount, CanaKit Low Noise Bearing System Fan
    • CanaKit 3.5A USB-C Raspberry Pi 4 Power Supply (US Plug) with Noise Filter, Set of Heat Sinks, Display Cable - 6 foot (Supports up to 4K60p)
    • CanaKit USB-C PiSwitch (On/Off Power Switch for Raspberry Pi 4)
  2. Start the service with docker compose up -d.

  3. Follow its output with docker compose logs -f. Use Ctrl+C to stop following the logs; this does not stop the service.

  4. Stop the service with docker compose down. The bind-mounted host data remains in ./data.

The project’s README uses the floating image reference ghcr.io/mjaschen/urlwatch. The README does not establish an immutable tag or digest, so check the project’s current instructions before pinning or updating an image. Keep a backup of the host data directory before changing images or configuration.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Run it directly with docker run

The project also documents direct Docker use. From the directory containing data, a foreground run is:

Rank #3
ELECROW CrowPi Case Kit for Raspberry Pi 5, 9-Inch Display
  • Not including the Raspberry Pi 5 (8GB), the Crowpi advanced version comes with the Raspberry Pi 5
  • ELECROW Black Case for the Raspberry Pi 5, CrowPi is equipped with a 9-inch HD touchscreen along with a camera; All the regular components used in DIY electronics are packed into the CrowPi development board, such as LCD, LED matrix, buzzer, light sensor, PIR sensor, ultrasonic sensor, IR sensor, etc
  • Raspberry Pi Sensors: The Crowpi raspberry pi 5 programming kit is jam-packed with lots of buttons such as 19 different sensors in a tidy easy to use package; You don't have to wait and wire things
  • Build Quality: Solid ABS shell and well made components in one place make it strong and convenient to travel
  • Programming Lessons: This raspberry pi 5 learning kit ships with step by step instructions and provides 21 lessons to take you through identifying components reading code and running it in the terminal
docker run --rm --interactive --tty 
  --volume "$(pwd)/data":/data/urlwatch 
  --volume /etc/localtime:/etc/localtime:ro 
  ghcr.io/mjaschen/urlwatch

For a background container that restarts unless you stop it, the project’s approach is:

docker run --detach 
  --restart unless-stopped 
  --name urlwatch 
  --volume "$(pwd)/data":/data/urlwatch 
  --volume /etc/localtime:/etc/localtime:ro 
  ghcr.io/mjaschen/urlwatch

Follow its output with docker logs --follow urlwatch. Both forms mount the host data directory at the image’s expected working path. The foreground form is useful for observing a run directly; the detached example gives a named container and restart policy. The documentation does not establish that either approach is faster or inherently safer.

Schedule and change the run interval

The Docker project says its default schedule runs every 15 minutes. That is the documented default for this image, not a guarantee for urlwatch generally. To run hourly, its README shows this command:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
0 * * * * cd /data/urlwatch && urlwatch --verbose --urls urls.yaml --config urlwatch.yaml --hooks hooks.py --cache cache.db

Changing the schedule requires mounting the modified crontab into the container, as described by the project. Keep the command’s paths and filenames aligned with the files in the mounted working directory. If you use another image, confirm its scheduler, paths, and command rather than combining its conventions with this image’s.

Rank #4
CanaKit Raspberry Pi 5 Desktop PC with SSD (Fully Assembled) (256 GB SSD)
  • Fully assembled for plug-and-play operation
  • Includes Raspberry Pi 5 with 8GB RAM
  • 256 GB PCIe Pi NVMe SSD (Pre-loaded with Pi 64-Bit OS)
  • M.2 HAT+
  • CanaKit Turbine Black Case for the Pi 5

Troubleshoot common persistence and startup problems

  • Jobs or settings disappear after recreating the container: confirm the service still mounts the host directory to /data/urlwatch, and that your files are in the host-side directory named in the mount. With the documented Compose mapping, that is ./data.

  • urlwatch cannot find a configuration or jobs file: check the exact filenames and capitalization: urls.yaml and urlwatch.yaml. Check that they are inside the mounted directory, not beside it.

  • Notifications do not arrive: inspect the reporter configuration under report in urlwatch.yaml, verify the mail service details and credentials, and review the container logs. Keep secrets out of public source control.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Hourly runs do not happen: changing the command alone does not change the schedule. The project specifies that the modified crontab must also be mounted into the container; confirm the crontab mount and its schedule.

    Best Value
    RasTech Raspberry Pi 5 8GB Kit with Active Cooler and Pi5 Case
    • 【What you Get】You will get 1*Pi 5 8GB Single Board,1*RasTech Case,1*Active Cooler,1*Screwdriver,1*Installation instructions,12-month free warranty, lifetime service, 24-hour prompt and friendly response.
    • 【More Connectors】There are two USB 3.0 ports(5Gbps simultaneously) and two USB 2.0 ports, which triple total bandwidth ,support any combination of up to two cameras or displays. Peak SD card performance is doubled through support for the SDR104 high-speed mode. It provides a smooth desktop experience for you. Offer Gigabit Ethernet and a PCIe interface, along with dual-band Wi-Fi and Bluetooth 5.0/BLE wireless capability. The RasTech Pi 5 Kit use the new 27W 5.1V 5A USB-C power connector.
    • 【 Support Dual 4Kp60 Display 】Each of the two microHDMI sockets can control a 4K display at 60 Hertz, now support HDR, offering super HD video for media streaming projects. RPi 5 is the first RPi model that comes with a PCI Express port (PCIe 2.0 x1 with 500 MB/s) to attach SSDs (requires separate M.2 HAT).
    • 【 Excellent Chips And Applications】Pi 5 is a full-size Pi computer using silicon built in-house at Pi. The RP1 “southbridge” provides the bulk of the I/O capabilities for Pi 5. Pi 5 is more friendly and convenient in the development of Internet of Things, Web development, machine identification, automatic control and other electronic equipment applications and network.
    • 【 Faster CPU, Better GPU 】 Pi 5 features a Broadcom BCM2712 64-bit quad-core Arm Cortex-A76 processor running at 2.4GHz, it delivers a 2–3× increase in CPU performance relative to RaspberryPi 4. The 800MHz VideoCore VII GPU is compatible to OpenGL ES 3.1 and Vulkan 1.2, substantial uplift in graphics performance. Pi 5 Offers lightning-fast CPU speed, a PCI Express interface, a Real Time Clock (RTC) and a power button and runs significantly cooler than Pi 4.
  • A configuration option or command fails after changing images: the urlwatch manual referenced here is for version 2.29, while the Docker README’s floating image reference does not identify an immutable version. Check the version and configuration supported by the image actually running.

  • Files appear in a different location than expected: do not assume every urlwatch image uses /data/urlwatch. The cited project uses that path; other community images may use paths such as /root/.urlwatch.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

ScreenshotNeo is a separate website screenshot API and MCP server, not a urlwatch runner or replacement for urlwatch’s monitoring schedule. If your task is simply to capture a page image or PDF rather than watch it for changes, one GET request can return a screenshot. For example, save this response as a WebP file:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

See the ScreenshotNeo API documentation for request options. It removes supported cookie banners, newsletter popups, and chat widgets before capture; bot checks, blank pages, failed loads, and cache hits are not billed. Its MCP server provides screenshot tools for AI agents. The free plan includes 1,000 screenshots a month without a card; paid plans start at $5 for 3,000. Learn more at ScreenshotNeo. Sign up free for 1,000 screenshots a month, with no card required.

Which launch method should you choose?

Method Use it when Lifecycle commands Persistence
Docker Compose You want a project-level service workflow. docker compose up -d, docker compose logs -f, docker compose down ./data:/data/urlwatch in the documented example
Direct Docker You prefer to launch one container directly. docker logs --follow urlwatch for the detached example --volume "$(pwd)/data":/data/urlwatch

Both documented methods persist the same working directory. Choose based on how you prefer to manage the container, not an assumed difference in performance or security.

Frequently Asked Questions

Does stopping the container delete urlwatch’s cache?

Not when using the documented host bind mount: cache.db is kept in the host-side data directory.

Can I use this mount with any urlwatch Docker image?

No. The /data/urlwatch path and schedule described here belong to mjaschen/urlwatch-docker; verify the working path and startup behavior for another image.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Quick Recap

Bestseller No. 1
CanaKit Raspberry Pi 5 Starter Kit PRO - Turbine Black (128GB Edition) (8GB RAM)
CanaKit Raspberry Pi 5 Starter Kit PRO - Turbine Black (128GB Edition) (8GB RAM)
Includes Raspberry Pi 5 with 2.4Ghz 64-bit quad-core CPU (8GB RAM); CanaKit Turbine Black Case for the Raspberry Pi 5
$259.95
Bestseller No. 2
CanaKit Raspberry Pi 4 4GB Starter PRO Kit - 4GB RAM
CanaKit Raspberry Pi 4 4GB Starter PRO Kit - 4GB RAM
Includes Raspberry Pi 4 4GB Model B with 1.5GHz 64-bit quad-core CPU (4GB RAM); Includes Pre-Loaded 32GB EVO+ Micro SD Card (Class 10), USB MicroSD Card Reader
$159.99
Bestseller No. 4
CanaKit Raspberry Pi 5 Desktop PC with SSD (Fully Assembled) (256 GB SSD)
CanaKit Raspberry Pi 5 Desktop PC with SSD (Fully Assembled) (256 GB SSD)
Fully assembled for plug-and-play operation; Includes Raspberry Pi 5 with 8GB RAM; 256 GB PCIe Pi NVMe SSD (Pre-loaded with Pi 64-Bit OS)
$339.97

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.