Skip to content

Commit

Permalink
feat: added cron job to nginx certbot.
Browse files Browse the repository at this point in the history
  • Loading branch information
hsm2k3 committed Mar 19, 2024
1 parent 931e356 commit 4f9c3db
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ services:
- DOMAIN_PATH=${DOCKER_DOMAIN_PATH}
- SERVER_NAMES=${DOCKER_SERVER_NAMES}
- NODE_ENV=production
entrypoint:
- /bin/sh
- -c
- |
echo "0 */12 * * * certbot renew --webroot -w /var/www/certbot --quiet --post-hook 'nginx -s reload'" |
crontab - && crond -f
volumes:
- ./ssl-dhparams.pem:/etc/letsencrypt/ssl-dhparams.pem
- ./nginx/nginx.conf.prod.template:/etc/nginx/nginx.conf.prod.template:ro
Expand Down

0 comments on commit 4f9c3db

Please sign in to comment.