htpasswd Docker image to create a .htpasswd file. Usage Run the container: docker run -it --rm \ -e USERNAME=... \ -e PASSWORD=... \ markdegroot/htpasswd or using a .env file: docker run -it --rm \ --env-file .env \ markdegroot/htpasswd