Putting HTTP basic auth in front of an arbitrary container. I use Apache. Steps are:
- start your container on the host. Forward the port to somewhere you can apply a firewall to.
- firewall off the port using, ideally, the providers firewall tool.
- start an apache container, and configure it with a reverse proxy, and basic auth.
- make sure the Apache port isn't firewalled.