mrekin / docker-webcron

Simple webcron

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docker-webcron

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.

Usage

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

docker-compose

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

Parameters

URL (required):

The URL which getting pulled by curl.

INTERVAL_TIME (optional):

Set the interval time between polling in seconds. Default is 300.

CURL_PARAM (optional):

Optional parameters for cURL.

About

Simple webcron

License:MIT License


Languages

Language:Shell 64.3%Language:Dockerfile 35.7%