nginx-proxy/certbot

13 lines
370 B
Plaintext
Raw Permalink Normal View History

2020-11-29 11:33:31 +00:00
#!/bin/bash
docker exec nginx_proxy mkdir -p /var/www/certbot
docker run -it --rm --name letsencrypt \
--volumes-from nginx_proxy -v /etc/letsencrypt:/etc/letsencrypt:rw \
--network nginxproxy \
certbot/certbot \
--webroot --webroot-path /var/www/certbot --config-dir=/etc/letsencrypt \
$*
# renew --cert-name typename.fr --dry-run