-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathdocker-compose.yml
41 lines (39 loc) · 2.12 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
services:
traefik:
image: traefik:v3.0
command:
- --api.insecure=true
- --providers.docker
- --log.level=DEBUG
- --accesslog
- --experimental.localPlugins.fail2ban-local.moduleName=github.com/tomMoulard/fail2ban
- --experimental.plugins.fail2ban-registery.modulename=github.com/tomMoulard/fail2ban
- --experimental.plugins.fail2ban-registery.version=v0.7.1
ports:
- 80:80
- 8080:8080
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- .:/plugins-local/src/github.com/tomMoulard/fail2ban/
tty: true
whoami:
image: traefik/whoami # https://github.com/traefik/whoami
command: >-
-name whoami -verbose true
labels:
traefik.http.routers.fail2ban-local.rule: Host(`fail2ban-local.localhost`)
traefik.http.routers.fail2ban-local.middlewares: fail2ban-local
traefik.http.middlewares.fail2ban-local.plugin.fail2ban-local.rules.enabled: true
traefik.http.middlewares.fail2ban-local.plugin.fail2ban-local.rules.bantime: 3h
traefik.http.middlewares.fail2ban-local.plugin.fail2ban-local.rules.findtime: 3h
traefik.http.middlewares.fail2ban-local.plugin.fail2ban-local.rules.maxretry: 4
traefik.http.middlewares.fail2ban-local.plugin.fail2ban-local.allowlist.ip: 127.0.0.2
traefik.http.middlewares.fail2ban-local.plugin.fail2ban-local.denylist.ip: 127.0.0.3
traefik.http.middlewares.fail2ban-local.plugin.fail2ban-local.rules.urlregexps[0].regexp: /no
traefik.http.middlewares.fail2ban-local.plugin.fail2ban-local.rules.urlregexps[0].mode: block
traefik.http.middlewares.fail2ban-local.plugin.fail2ban-local.rules.urlregexps[1].regexp: /yes
traefik.http.middlewares.fail2ban-local.plugin.fail2ban-local.rules.urlregexps[1].mode: allow
traefik.http.middlewares.fail2ban-local.plugin.fail2ban-local.rules.statuscode: "400,401,403-499"
traefik.http.routers.fail2ban-registery.rule: Host(`fail2ban-registery.localhost`)
traefik.http.routers.fail2ban-registery.middlewares: fail2ban-registery
traefik.http.middlewares.fail2ban-registery.plugin.fail2ban-registery.enabled: true