Usage:
#if /etc/letsencrypt does not exist:
sudo mkdir /etc/letsencrypt
sudo chmod 0777 /etc/letsencrypt
#then
docker run -d
--name d-certbot
--mount type=bind,source=/etc/letsencrypt,target=/etc/letsencrypt
--mount type=bind,source=/var/www,target=/var/www
integralik/certbot
This image has "certadd domain.xyz [/webroot] [[email protected]]" command which obtains a certificate for the domain. You need to have integralik/nginx installed and the domain.xyz pointing at this server, it will be routed by default route in nginx config to /var/www/html (and default webroot is /var/www/html). You can also mention your own e-mail address.
Certadd must be executed before Addhostn on integralik/nginx docker image.
docker pull integralik/certbot:latest