Skip to content

Latest commit

 

History

History
61 lines (49 loc) · 2.58 KB

README.md

File metadata and controls

61 lines (49 loc) · 2.58 KB

Docker Htpasswd Generator bcrypt,MD5,SHA1,CRYPT,argon2

Build Status Build Status Branch Master Docker Pulls Docker Image Version (latest semver)

Docker CLI

docker run -it --rm \
  -e USER_NAME=admin \
  -e USER_PASSWD=admin \
  -e PASSWORD_FORMAT=bcrypt \
  -v htpasswd_data:/data \
  alcapone1933/htpasswd:latest

  -e ARGON2_SALT=somesalt \

Docker Compose

version: "3.9"
services:
  htpasswd:
    image: alcapone1933/htpasswd:latest
    container_name: htpasswd
    environment:
      - USER_NAME=admin	
      - USER_PASSWD=admin
      - PASSWORD_FORMAT=bcrypt
      # - ARGON2_SALT=somesalt
    volumes:
      - data:/data
volumes:
  data:
    name: htpasswd_data

Volume params

Name Value Example
Data volume data:/data
File auth path ./auth:/data/auth

Env params

Name Value Default Example FORMAT
USER USER_NAME admin admin ----------------------------------------------
PASSWORD USER_PASSWD admin admin ----------------------------------------------
PASSWORD USER_PASSWD admin admin ----------------------------------------------
PASSWORD Formats PASSWORD_FORMAT bcrypt bcrypt bcrypt,MD5,SHA1,CRYPT,argon2i,argon2d,argon2id
ARGON2 SALT ARGON2_SALT somesalt somesalt ----------------------------------------------
FILE auth #Optional FILE_AUTH /data/auth /data/auth ----------------------------------------------