Skip to content

alcapone1933/docker-htpasswd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 ----------------------------------------------

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published