Docker Shared Volumes for a Static site
This is using the automatic reverse proxy setting.
This is surely overkill but to reuse the automatic reverse proxy, I actually start a new nginx instance, set the VIRTUAL_HOST environment variable for the automatic reverse proxy and access the static website directory with a shared volume.
Based on this stack overflow post I created an
/opt directory on the host and git cloned the development code into
/opt/app and shared the host volume.
docker run -e VIRTUAL_HOST=foo2.bar.org -d -v /opt/app:/usr/share/nginx/html -p 8080:80 dockerfile/nginx