Simple webcron with curl. Ideal for updating your DynDNS or triggering a website on a regular basis.
500K+
Simple and small webcron docker container based an alpine linux with curl. Ideal for updating your DynDNS or triggering a website on a regular basis.
Simply run the following command:
docker run --name "webcron" -e INTERVAL_TIME="300" -e URL="https://example.com/cron.php" -e CURL_PARAM="--insecure" cw1900/docker-webcron
Include docker-webcron in a docker-compose.yaml file:
version: '3.8'
services:
webcron:
image: cw1900/docker-webcron
restart: always
environment:
- INTERVAL_TIME=300
- URL=https://example.com/cron.php
The URL which getting pulled by curl.
Set the interval time between polling in seconds. Default is 300.
Optional parameters for cURL.
Only execute curl if the DATETIME matches all set MATCHING_* variables.
The allowed variable values are defined according to date:
MATCHING_DATE: Day of week (0..6); 0 is SundayMATCHING_HOUR: Hour (00..23)MATCHING_MINUTE: Minute (00..59)Usage examples:
MATCHING_DAY=0 executes curl only on sundays according to INTERVAL_TIMEMATCHING_DAY=0 MATCHING_HOUR=12 executes curl only on sundays between 12:00 and 12:59 according to INTERVALL_TIMEMATCHING_DAY=0 MATCHING_HOUR=12 MATCHING_MINUTE=15 executes curl only on sundays between 12:15:00 and 12:15:59 according to INTERVALL_TIMEBe sure that your INTERVAL_TIME allows for execution within the MATCHING_* time window.
E.g. INTERVALL_TIME=300 could cause no execution to be triggered in the third example.
Content type
Image
Digest
sha256:ba95a0ced…
Size
3.7 MB
Last updated
about 4 years ago
docker pull cw1900/docker-webcron