13 lines
370 B
Bash
Executable File
13 lines
370 B
Bash
Executable File
#!/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
|