A container composition of Jenkins with a reverse Proxy (Nginx) and TLS (Let's Encrypt).
All together in a single command that runs out of the box.
This compose is using official Jenkins Docker Image and jwilder/nginx-proxy with jrcs/letsencrypt-nginx-proxy-companion.
You need to define a domain name under which Jenkins should be reachable.
An option is to create a .env file example or to define an environment variable export DOMAIN=ci.example.or
docker-compose -f https://raw.githubusercontent.com/8gears/Jenkins-in-a-Container/master/docker-compose.yml up -d
Done!