A docker image which responds to both HTTP and self-signed HTTPS requests.
docker run -d -p 8080:80 -p 8443:443 danthegoodman/https-echoserver
curl http://localhost:8080/hello
# {"httpVersion":"1.1","method":"GET","url":"/hello","headers":{"host":"localhost:8080","user-agent":"curl/7.49.1","accept":"*/*"}}
curl -k https://localhost:8443/world
# {"httpVersion":"1.1","method":"GET","url":"/world","headers":{"host":"localhost:8443","user-agent":"curl/7.49.1","accept":"*/*"}}