Docker Port Forwarding - BKJackson/BKJackson_Wiki GitHub Wiki

Start a Dockerized web server

$ docker run --detach --publish=80:80 --name=webserver nginx  

Networking on Docker Desktop for Mac

Access host (not vm) from inside container - very long thread of discussions including Docker staff
qoomon/docker-host - Docker image to forward all traffic to the docker host. See also qoomon/docker-host github
Docker-compose cheatsheet
Networking features in Docker Desktop for Mac - Includes VPN Passthrough and Port Mapping
Networking using the host network - Docker docs

General

Docker host and bridged networking - Running library/httpd on different ports (Aug. 18, 2018)
Networking Docker Containers - Oct. 21, 2018, Good article! In this blog post, we will learn Docker networking concepts. Such as overlay networks, Docker swarm, embedded DNS servers, routing mesh etc.

Articles

6 Docker Basics You Should Completely Grasp When Getting Started
By default, a container is not accessible by other containers, nor from the outside world. However, you can tell Docker to expose a container port to a port of the host machine (either the 127.0.0.1 interface or an external one).

A common scenario for private servers, is when you want to run a web app under a subdomain. An example would be a Flask application which listens on port 5000 of the container, and Docker is told to expose it on 127.0.0.1:9010 on the server. This means only local apps can access it.

At the same time, Nginx is installed on the host. It listens on the public port 80 for any incomming requests, and takes care of serving files or acting as a reverse proxy, based on the domain. So if a request for the domain of the app hits the server, Nginx makes sure that it is passed to 127.0.0.1:9010, and the container receives it on port 5000 and takes over from there. The containerized application does not really care about anything apart from its port 5000. It only gets the requests which are meant for it, which is a nice separation of concerns.

Nginx (part of F5 since May 9, 2019)

Installing Nginx in Mac OS X Maverick with Homebrew
Setting up a Nginx web server on macOS

TLS 1.0 and 1.1 Disabled Oct. 17, 2018 due to security vulnerability

What is TLS and why does it matter to Apple (and you)? - Oct. 17, 2018
Impact of disabled TLS 1.0 and 1.1 connections on Mac users
OS X El Capitan (10.11) Security updates - There were a bunch of security updates beginning in the middle of 2016