Certbot generation and renewal process
Generate:
docker run -it --rm -p 80:80 -p 443:443 -v /etc/letsencrypt:/etc/letsencrypt certbot/certbot certonly --agree-tos --standalone --email email@example.com -d example.com -d www.example.com -d docs.example.com
Renew:
docker run -it --rm -v /etc/letsencrypt:/etc/letsencrypt certbot/certbot renew --dry-run
Renew in cronjob:
crontab -e
0 0 */15 * * docker run -it --rm -v /etc/letsencrypt:/etc/letsencrypt certbot/certbot renew --dry-run