Publish a host port deliberately
#-p maps a host endpoint to a container port. Binding 127.0.0.1 restricts the published host endpoint to loopback.
Fragment
The app inside the container usually must bind an interface reachable from the container network, rather than its own loopback only.