-
-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
26 lines (25 loc) · 886 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
26 lines (25 loc) · 886 Bytes
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
services:
caddy-waf:
# Pin an exact release rather than `latest`: this project has shipped
# security fixes, and `latest` leaves no way to name the image you tested
# against. Swap for `build: .` to run your local checkout instead -- since
# v0.3.10 that actually compiles the working tree.
image: ghcr.io/fabriziosalmi/caddy-waf:0.3.10
# build: .
ports:
- "8080:8080"
volumes:
- ./Caddyfile:/app/Caddyfile:ro
- ./rules.json:/app/rules.json:ro
# Not :ro -- the WAF watches these and reloads on change, so a host-side
# updater needs to be able to rewrite them.
- ./ip_blacklist.txt:/app/ip_blacklist.txt
- ./dns_blacklist.txt:/app/dns_blacklist.txt
restart: unless-stopped
environment:
- CADDY_ADMIN=0.0.0.0:2019
networks:
- caddy-waf-net
networks:
caddy-waf-net:
driver: bridge