OK, so here is how you can run nginx in docker and configure it to terminate SSL and handle wildcard cert and multiple related domain names.
The first order of business is to create folders on the host machine that we will map to the docker container for config files and logs.
After you have created all the config files and everything is up and running you will end up with files like this.
Create Config Files
Next create your config files like so (we just catted them out for display).
Spin Up Hello World Dockers
Here we spin up two dockers that just display hello world in response to HTTP request.
Spin up nginx Docker
Finally spin up your nginx docker
Assuming foo.woohoo.com and rat.woohoo.com map to the public IP of your server . . .
And assuming port 443 is not blocked by firewalls or AWS security groups . . .
You should be able to browse to https://foo.woohoo.com and https://rat.woohoo.com, and see a lovely hello world page.
The only other trick is getting your ssl_certificate and ssl_certificate_key correct. That's a topic for another time.