docker run -d -p 1234:80 \
-v /Users/{username}/local/path1/:/usr/share/nginx/html/ \
-v /Users/{username}/local/path2/:/usr/share/nginx/html/subpath1 \
-v /Users/{username}/local/path3/:/usr/share/nginx/html/subpath2 \
-v /Users/{username}/local/pathN/:/usr/share/nginx/html/subpath2/subfolder \
--name webserver \
nginx
sudo vim /etc/pf.conf
And add content below:
# Open port 1234 for TCP on all interfaces
pass in proto tcp from any to any port 1234
Save and Reboot
# Apply new config.
sudo pfctl -vnf /etc/pf.conf
# Restart computer.
sudo reboot