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.
- Host: GitHub
- URL: https://github.com/monogramm/docker-fail2web
- Owner: Monogramm
- License: agpl-3.0
- Created: 2019-03-12T22:36:38.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-13T10:44:52.000Z (about 7 years ago)
- Last Synced: 2025-04-14T06:37:37.236Z (about 1 year ago)
- Topics: alpine, docker, fail2web
- Language: Dockerfile
- Homepage: https://github.com/Sean-Der/fail2web
- Size: 49.8 KB
- Stars: 7
- Watchers: 2
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
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]
[](https://travis-ci.org/Monogramm/docker-fail2web)
[](https://hub.docker.com/r/monogramm/docker-fail2web/)
[](https://hub.docker.com/r/monogramm/docker-fail2web/)
[](https://microbadger.com/images/monogramm/docker-fail2web)
[](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
```