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 \
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
Name | Value | Example |
---|---|---|
Data | volume | data:/data |
File auth | path | ./auth:/data/auth |
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 | ---------------------------------------------- |