mirror of
https://gitgud.io/fatchan/haproxy-protection.git
synced 2025-05-09 02:05:37 +00:00
add on-demand global / per-domain ddos protection enabling add automatic redirect from captcha page back to the requested source prettify the captcha page
24 lines
601 B
YAML
24 lines
601 B
YAML
version: "3.9"
|
|
services:
|
|
haproxy:
|
|
build:
|
|
context: ./
|
|
dockerfile: haproxy/Dockerfile
|
|
ports:
|
|
- 80:80
|
|
volumes:
|
|
- ./haproxy/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg
|
|
- ./haproxy/domains_under_ddos.txt:/usr/local/etc/haproxy/domains_under_ddos.txt
|
|
- ./src/scripts/:/usr/local/etc/haproxy/scripts/
|
|
- ./src/libs/:/usr/local/etc/haproxy/libs/
|
|
environment:
|
|
- HCAPTCHA_SECRET=${HCAPTCHA_SECRET}
|
|
- HCAPTCHA_SITEKEY=${HCAPTCHA_SITEKEY}
|
|
|
|
nginx:
|
|
image: "nginx:latest"
|
|
|
|
redis:
|
|
image: "redis:latest"
|
|
ports:
|
|
- 6379:6379 |