-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.local.yml
42 lines (38 loc) · 1.3 KB
/
docker-compose.local.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
42
version: "3.7"
# refer to https://github.com/acouvreur/traefik-modsecurity-plugin on how to use that plugin
services:
traefik:
image: traefik
ports:
- "8000:80"
- "8080:8080"
command:
- --api.dashboard=true
- --api.insecure=true
- --experimental.localPlugins.traefik-modsecurity-plugin.moduleName=github.com/acouvreur/traefik-modsecurity-plugin
- --providers.docker=true
- --entrypoints.http.address=:80
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
- '.:/plugins-local/src/github.com/acouvreur/traefik-modsecurity-plugin'
labels:
- traefik.enable=true
- traefik.http.services.traefik.loadbalancer.server.port=8080
- traefik.http.middlewares.waf.plugin.traefik-modsecurity-plugin.modSecurityUrl=http://waf:80
- traefik.http.middlewares.waf.plugin.traefik-modsecurity-plugin.maxBodySize=10485760
waf:
image: ghcr.io/aless3/coraza-simple
environment:
- PORT=80
# not supported yet
# - PARANOIA=1
# - ANOMALY_INBOUND=10
# - ANOMALY_OUTBOUND=5
dummy:
image: containous/whoami
website:
image: containous/whoami
labels:
- traefik.enable=true
- traefik.http.routers.website.rule=PathPrefix(`/website`)
- traefik.http.routers.website.middlewares=waf@docker