An open API service indexing awesome lists of open source software.

https://github.com/monogramm/docker-fail2web

:whale: Docker image for fail2web.
https://github.com/monogramm/docker-fail2web

alpine docker fail2web

Last synced: 10 months ago
JSON representation

:whale: Docker image for fail2web.

Awesome Lists containing this project

README

          

[uri_license]: http://www.gnu.org/licenses/agpl.html
[uri_license_image]: https://img.shields.io/badge/License-AGPL%20v3-blue.svg

[![License: AGPL v3][uri_license_image]][uri_license]
[![Build Status](https://travis-ci.org/Monogramm/docker-fail2web.svg)](https://travis-ci.org/Monogramm/docker-fail2web)
[![Docker Automated buid](https://img.shields.io/docker/cloud/build/monogramm/docker-fail2web.svg)](https://hub.docker.com/r/monogramm/docker-fail2web/)
[![Docker Pulls](https://img.shields.io/docker/pulls/monogramm/docker-fail2web.svg)](https://hub.docker.com/r/monogramm/docker-fail2web/)
[![](https://images.microbadger.com/badges/version/monogramm/docker-fail2web.svg)](https://microbadger.com/images/monogramm/docker-fail2web)
[![](https://images.microbadger.com/badges/image/monogramm/docker-fail2web.svg)](https://microbadger.com/images/monogramm/docker-fail2web)

# Docker image for fail2web

This Docker repository provides the [fail2web](https://github.com/Sean-Der/fail2web) server with a configuration suitable to use with [fail2rest](https://github.com/Sean-Der/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](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
```