masto-aio/ansible/roles/certbot/templates/docker-compose.yaml

21 lines
494 B
YAML
Raw Normal View History

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;
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