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

20 lines
494 B
YAML

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}}
; sleep 12h & wait $${!}; done;'
networks:
- nginx
networks:
nginx:
external: true