Lets encrypt ssl termination will generate certificates for given domain names and set up a nginx server to handle the SSL termination and forward requests to load balancer behind it.
sudo docker run --restart=always -p 80:80 -p 443:443
-v /mnt/dat1/letsencrypt:/etc/letsencrypt --name letsencrypt-ssl
-e EMAIL="<email>" -e DOMAINS="<domain_separated_by_space>"
-e TARGET="<ip_to_target_lb>"
-d mckn/letsencrypt-ssl-termination
To inspect what your container is doing run the follwing command:
docker logs --follow letsencrypt-ssl