git clone https://github.com/wmnnd/nginx-certbot.git
cd nginx-certbot/
ll
nano init-letsencrypt.sh
nano data/nginx/app.conf
./init-letsencrypt.sh
docker ps
ll data/certbot/conf/
cd ../
ll
#check and rename ls_data_certbot: uncomment !!! mv nginx-certbot/data/certbot/ ls_data_certbot
-
copy/change app.conf to YOURS mynginx.conf
-
create nginx.Dockerfile
-
copy docker-compose.yml
- change volume (ex: /mnt/storage/ls_data_certbot)
- delete volume-nginx.conf
- add nginx-build-context-dockerfile
- delete old port 80
- change networks - if u using it
DONE !!!
see example on leasing