MongoDB + Letsencrypt + Docker

How to setup MongoDB Docker container to use Let's Encrypt SSL certificate with autorenewal support? That's something which should be much easier to do than it is now. Example:

curl -G -v --unix-socket /var/run/docker.sock http:/events --data-urlencode 'filters={"container":["nginx-mongo"]}'

Filter nginx-mongo container restarts:

curl -G -v --unix-socket /var/run/docker.sock http:/events --data-urlencode 'filters={"container":["nginx-mongo"],"event":["restart"]}'

This should work (but doesn't):

while read l; do echo "OK"; done < <(curl -GET -s --unix-socket /var/run/docker.sock http:/events --data-urlencode 'filters={"container":["nginx-mongo"],"event":["restart"]}')

Such command may trigger mongodb.pem key+cert file generation by:

awk 1 /etc/nginx/certs/ /etc/nginx/certs/ > /mongo-ssl/mongodb.pem