This Docker repository provides the fail2web server with a configuration suitable to use with fail2rest.
Install Docker and then run docker build -t docker-fail2web .
to build the image.
This image is designed to be used in a micro-service environment. You can easily setup your fail2web with the sample docker-compose.yml.
The fail2web image supports auto configuration via environment variables.
Default value: http://localhost:5000/
This parameter sets the local address of fail2rest.
Examples:
FAIL2REST_ADDR='http://localhost:5000/'
FAIL2REST_ADDR='http://127.0.0.1:5000/'
FAIL2REST_ADDR='http://fail2rest:5000/'
Default value: admin.fail2ban
This parameter sets the default htpasswd username. Only used on first run.
Examples:
FAIL2REST_USER='admin'
FAIL2REST_USER='root'
FAIL2REST_USER='john.doe'
Default value: youshouldoverwritethis
This parameter sets the default htpasswd password. Only used on first run.
Examples:
FAIL2REST_PASSWD=somethingverysecure
FAIL2REST_PASSWD=somethingrandomlygenerated
Default value: 15
Possible values: from 4 to 31. Be careful of the computation time for anything higher than 10.
This parameter sets the default htpasswd bcrypt cost. Only used on first run.
Examples:
FAIL2REST_PASSWD_COST=4
FAIL2REST_PASSWD_COST=14
FAIL2REST_PASSWD_COST=31