Nginx image that shows container's hostname.
$ sudo docker run -d -p80:80 -p443:443 --name=sample-web makocchi/docker-nginx-hostname
Make your ssl cert.
$ openssl genrsa -out ssl.key 2048
$ openssl req -x509 -new -nodes -key ssl.key -days 10000 -out ssl.crt -subj "/CN=makocchi.com"
$ cp ssl.key ssl.crt files/etc/nginx/conf.d/.