Skip to content
🐳 Docker image for fail2web.
Dockerfile Shell
Branch: master
Clone or download
Pull request Compare This branch is even with Monogramm:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/ISSUE_TEMPLATE
.dockerignore
.gitattributes
.travis.yml
CONTRIBUTING.md
Dockerfile
LICENSE
README.md
docker-compose.yml
docker-entrypoint.sh
nginx.vh.default.conf

README.md

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
You can’t perform that action at this time.