[GH-ISSUE #932] No Crontask to run auto-renewal in Docker-Container?! #792

Closed
opened 2026-02-26 06:34:26 +03:00 by kerem · 2 comments
Owner

Originally created by @typoworx-de on GitHub (Mar 8, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/932

The docker-container does not seem to provide any kind of crontask to ensure auto-renewal for certbot is running in regular schedule?!

Why isn't there anything in /etc/periodic/daily? Also can't find anything in Dockerfile pointing to ensure auto-renewal is running automatically?

And even Healthcheck is not used to schedule to run certbot renewal at least every 1-3 days (Attention: do not run too often to avoid "too much requests" API denial).

Originally created by @typoworx-de on GitHub (Mar 8, 2021). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/932 The docker-container does not seem to provide any kind of crontask to ensure auto-renewal for certbot is running in regular schedule?! Why isn't there anything in /etc/periodic/daily? Also can't find anything in Dockerfile pointing to ensure auto-renewal is running automatically? And even Healthcheck is not used to schedule to run certbot renewal at least every 1-3 days (Attention: do not run too often to avoid "too much requests" API denial).
kerem 2026-02-26 06:34:26 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@typoworx-de commented on GitHub (Mar 8, 2021):

Trying to fix it by creating separate docker bind-mount on /etc/periodic
and this script:

/etc/periodic/daily/certbot.sh

#!/bin/sh
echo "Running Certbot Renewal";
echo "---------------------------";
echo "Job started: $(date)";
/usr/bin/certbot renew --non-interactive --config "/etc/letsencrypt.ini";
echo "Job finished: $(date)";
<!-- gh-comment-id:792650389 --> @typoworx-de commented on GitHub (Mar 8, 2021): Trying to fix it by creating separate docker bind-mount on /etc/periodic and this script: /etc/periodic/daily/certbot.sh ``` #!/bin/sh echo "Running Certbot Renewal"; echo "---------------------------"; echo "Job started: $(date)"; /usr/bin/certbot renew --non-interactive --config "/etc/letsencrypt.ini"; echo "Job finished: $(date)"; ```
Author
Owner

@jc21 commented on GitHub (Mar 8, 2021):

The nodejs process will renew certs on docker start and every 1 hour thereafter. There does not need to be another process running in the container just for that.

<!-- gh-comment-id:792703101 --> @jc21 commented on GitHub (Mar 8, 2021): The nodejs process will renew certs on docker start and [every 1 hour thereafter](https://github.com/jc21/nginx-proxy-manager/blob/b7b808d98d787b25548265055d9f8621d31b580e/backend/internal/certificate.js#L29). There does not need to be another process running in the container just for that.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#792
No description provided.