Skip to content

ridgarou/docker-fail2web

 
 

Repository files navigation

License: AGPL v3 Build Status Docker Automated buid Docker Pulls

Docker image for fail2web

This Docker repository provides the fail2web server with a configuration suitable to use with fail2rest.

Build Docker image

Install Docker and then run docker build -t docker-fail2web . to build the image.

How to run this 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.

Auto configuration via environment variables

The fail2web image supports auto configuration via environment variables.

FAIL2REST_ADDR

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

FAIL2REST_USER

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'

FAIL2REST_PASSWD

Default value: youshouldoverwritethis

This parameter sets the default htpasswd password. Only used on first run.

Examples:

FAIL2REST_PASSWD=somethingverysecure
FAIL2REST_PASSWD=somethingrandomlygenerated

FAIL2REST_PASSWD_COST

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

About

🐳 Docker image for fail2web.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 50.5%
  • Shell 49.5%