bash
hostnamectl set-hostname cron.example.com
echo "203.0.113.10 cron.example.com cron" >> /etc/hosts # your VPS IPv4
timedatectl set-timezone Europe/ZurichCreate the matching DNS A record too. The timezone is a choice, since each event can carry its own. If you run on Zurich time, keep critical jobs out of the 02:00–03:00 hour on the last Sunday of March and of October, when it is skipped or repeated, and note that Cronicle runs its storage maintenance daily at 04:00 server time by default.
Next, Node.js and Cronicle. The installer places the latest stable release in /opt/cronicle and registers a boot service through pixl-boot. Change 24 to 26 if you want the newest LTS line.
bash
apt update && apt install -y curl ca-certificates
curl -fsSL https://deb.nodesource.com/setup_24.x -o /root/nodesource_setup.sh
bash /root/nodesource_setup.sh
apt install -y nodejs
node -v # must print v22.12.0 or later
curl -s https://raw.githubusercontent.com/jhuckaby/Cronicle/master/bin/install.js | node
openssl rand -hex 32 # use the output as secret_keyBefore the first start, edit /opt/cronicle/conf/config.json: set base_app_url to https://cron.example.com, paste the random string into secret_key (every server in a cluster must share it), and fill in email_from and smtp_hostname, with smtp_port 587 and a mail_options block for an authenticated relay. Outbound port 25 is open on every VPS, so a local Postfix will deliver, but alerts from a fresh IP without reverse DNS, SPF and DKIM tend to land in spam; relaying through a mailbox you already own is less trouble, as our note on our answer on port 25 explains. Then initialise storage and start:
bash
/opt/cronicle/bin/control.sh setup
/opt/cronicle/bin/control.sh startRun setup once, on the primary only. It creates an admin account with the password admin; change it immediately, or create your own administrator and delete that one.
Port 3012 should not face the internet. Caddy is the shortest route to TLS: it obtains the certificate and passes through the WebSocket the live log viewer uses, and Cronicle's default https_header_detect already recognises the X-Forwarded-Proto header it sends.
bash
apt install -y caddy
cat > /etc/caddy/Caddyfile <<'EOF'
cron.example.com {
reverse_proxy 127.0.0.1:3012
}
EOF
systemctl reload caddyA default-drop nftables policy then closes 3012, 3013 and 3014 without naming them. Put this in /etc/nftables.conf and run systemctl enable --now nftables:
example
table inet filter {
chain input {
type filter hook input priority 0; policy drop;
ct state established,related accept
iif lo accept
ip protocol icmp accept
ip6 nexthdr ipv6-icmp accept
tcp dport { 22, 80, 443 } accept
}
}Workers must accept TCP 3012 from the primary's address, since the primary connects to them. Keeping workers private has a cost: your browser fetches a worker job's live log directly from that worker's hostname, so it will not display without a route there.
For backups, control.sh export writes users, plugins, categories, servers, server groups, API keys and every scheduled event to a text file, but not job history or logs. Export nightly and push the file with /opt/cronicle/conf to an S3-compatible object storage bucket using restic or rclone; the 250 GB bucket at $1.99 a month is ample. You can schedule the export as a Cronicle event, but monitor it from elsewhere, because the day Cronicle stops, its own backup job stops with it.
Cronicle in Docker
Upstream publishes neither an official image nor a Dockerfile. Community images such as soulteary/cronicle exist, but check which release a tag carries: at the time of writing that project's README examples reference 0.9.80, while upstream is at 0.9.142. The deeper problem is functional. The Shell Plugin runs jobs inside the container, where they see the container's filesystem and tools rather than the host's, and the usual workaround of mounting the Docker socket gives the container root-equivalent access to the VPS, which defeats the isolation. A container makes sense when Cronicle only calls HTTP endpoints or starts work on other machines; for a cron replacement on the server itself, install natively.