Skip to content

Commit

Permalink
Update waf url (#22)
Browse files Browse the repository at this point in the history
* Update waf url

* Pinned docker images to latest version

---------

Co-authored-by: Mike Conrad <[email protected]>
  • Loading branch information
enxoco and Mike Conrad authored Nov 19, 2024
1 parent 5c33072 commit 0ced6bd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions docker-compose.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3.7"

services:
traefik:
image: traefik
image: traefik:3.0.1
ports:
- "8000:80"
- "8080:8080"
Expand All @@ -18,11 +18,11 @@ services:
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.modSecurityUrl=http://waf:8080
- traefik.http.middlewares.waf.plugin.traefik-modsecurity-plugin.maxBodySize=10485760

waf:
image: owasp/modsecurity-crs:apache
image: owasp/modsecurity-crs:4.2.0-apache-202405220605
environment:
- PARANOIA=1
- ANOMALY_INBOUND=10
Expand All @@ -37,4 +37,4 @@ services:
labels:
- traefik.enable=true
- traefik.http.routers.website.rule=PathPrefix(`/website`)
- traefik.http.routers.website.middlewares=waf@docker
- traefik.http.routers.website.middlewares=waf@docker
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3.7"

services:
traefik:
image: traefik
image: traefik:3.0.1
ports:
- "8000:80"
- "8080:8080"
Expand All @@ -18,11 +18,11 @@ services:
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.modSecurityUrl=http://waf:8080
- traefik.http.middlewares.waf.plugin.traefik-modsecurity-plugin.maxBodySize=10485760

waf:
image: owasp/modsecurity-crs:apache
image: owasp/modsecurity-crs:4.2.0-apache-202405220605
environment:
- PARANOIA=1
- ANOMALY_INBOUND=10
Expand All @@ -37,4 +37,4 @@ services:
labels:
- traefik.enable=true
- traefik.http.routers.website.rule=PathPrefix(`/website`)
- traefik.http.routers.website.middlewares=waf@docker
- traefik.http.routers.website.middlewares=waf@docker

0 comments on commit 0ced6bd

Please sign in to comment.