Certbot will renew SSL certs
To create the service files:
sudo systemctl edit --force --full certbot.service
/etc/systemd/system/certbot.service
To create the timer file:
sudo systemctl edit --force --full certbot.timer
The run_certbot.sh
script is as follows:
This will pull in the latest certbot container, then renew the certificates based on the configuration in /opt/docker/certbot
, then it will restart nginx