2024-01-19 18:58:51 -08:00
|
|
|
version: '3.5'
|
|
|
|
services:
|
|
|
|
certbot:
|
|
|
|
container_name: certbot
|
|
|
|
image: certbot/certbot
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- /srv/certbot/etc:/etc/letsencrypt
|
|
|
|
- /srv/certbot/www:/var/www/certbot
|
|
|
|
entrypoint: >
|
|
|
|
/bin/sh -c 'trap exit TERM;
|
2024-01-21 08:02:49 -08:00
|
|
|
while :; do certbot renew --noninteractive --webroot --webroot-path=/var/www/certbot --cert-name {{domain_name}}
|
2024-01-19 18:58:51 -08:00
|
|
|
; sleep 12h & wait $${!}; done;'
|
|
|
|
networks:
|
|
|
|
- nginx
|
|
|
|
|
|
|
|
networks:
|
|
|
|
nginx:
|
|
|
|
external: true
|
|
|
|
|