This is a "docker-compose" project that put traefik with a basic auth as a reverse proxy in front of a HelloWorld Express app.
We first tryed with nginx, but our objectif was to be able to use env vars or secrets to define the ".htpasswd" on the fly — we weren't able to find a way to do it with nginx while it was pretty straight forward with traefik. The nginx service is commented in the docker-compose.yml file, feel free to test it again.