mirror of
https://gitgud.io/fatchan/haproxy-protection.git
synced 2025-05-09 02:05:37 +00:00
42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
version: "3.9"
|
|
services:
|
|
# tor:
|
|
# build:
|
|
# context: ./
|
|
# dockerfile: tor/Dockerfile
|
|
haproxy:
|
|
network_mode: "host"
|
|
build:
|
|
context: ./
|
|
dockerfile: haproxy/Dockerfile
|
|
ports:
|
|
- 80:80 #http
|
|
- 2000:2000 #port 2000 haproxy socket for external management
|
|
- 2001:2001 #dataplaneapi
|
|
volumes:
|
|
- ./haproxy/haproxy.cfg:/etc/haproxy/haproxy.cfg
|
|
- ./haproxy/ddos.map:/etc/haproxy/ddos.map
|
|
- ./haproxy/hosts.map:/etc/haproxy/hosts.map
|
|
- ./haproxy/backends.map:/etc/haproxy/backends.map
|
|
- ./haproxy/blocked.map:/etc/haproxy/blocked.map
|
|
- ./haproxy/dataplaneapi.hcl:/etc/haproxy/dataplaneapi.hcl
|
|
- ./haproxy/trace.html:/etc/haproxy/trace.html
|
|
- ./src/scripts/:/etc/haproxy/scripts/
|
|
- ./src/libs/:/etc/haproxy/libs/
|
|
- ./haproxy/js/:/var/www/js/
|
|
environment:
|
|
- HCAPTCHA_SECRET=
|
|
- HCAPTCHA_SITEKEY=
|
|
- CAPTCHA_COOKIE_SECRET=
|
|
- POW_COOKIE_SECRET=
|
|
- RAY_ID=docker
|
|
- BUCKET_DURATION=43200
|
|
- BACKEND_NAME=servers
|
|
- SERVER_PREFIX=websrv
|
|
nginx:
|
|
ports:
|
|
- 81:80
|
|
image: "nginx:latest"
|
|
volumes:
|
|
- ./nginx:/usr/share/nginx/html
|