Warning: this is going to work for a fish shell on a Mac host.
Add the function to your fish shell, e.g.
source serve_static_web_docker.fish
Then go to your path (warning, make sure there is an index.html file)
cd my/path/to/html
serve
Your browser will open the page and your terminal will show logs from nginx.