mirror of
https://github.com/bunkerity/bunkerized-nginx
synced 2023-12-13 21:30:18 +01:00
71 lines
1.5 KiB
YAML
71 lines
1.5 KiB
YAML
version: "3.5"
|
|
|
|
services:
|
|
bw:
|
|
image: bunkerity/bunkerweb:1.5.2
|
|
pull_policy: never
|
|
labels:
|
|
- "bunkerweb.INSTANCE"
|
|
volumes:
|
|
- ./index.html:/var/www/html/index.html
|
|
environment:
|
|
API_WHITELIST_IP: "127.0.0.0/8 10.20.30.0/24 192.168.0.3"
|
|
HTTP_PORT: "80"
|
|
USE_BUNKERNET: "no"
|
|
USE_BLACKLIST: "no"
|
|
LOG_LEVEL: "info"
|
|
|
|
# ? BAD_BEHAVIOR settings
|
|
USE_BAD_BEHAVIOR: "yes"
|
|
BAD_BEHAVIOR_STATUS_CODES: "400 401 403 404 405 429 444"
|
|
BAD_BEHAVIOR_BAN_TIME: "86400"
|
|
BAD_BEHAVIOR_THRESHOLD: "10"
|
|
BAD_BEHAVIOR_COUNT_TIME: "60"
|
|
networks:
|
|
bw-universe:
|
|
bw-services:
|
|
ipv4_address: 192.168.0.2
|
|
|
|
bw-scheduler:
|
|
image: bunkerity/bunkerweb-scheduler:1.5.2
|
|
pull_policy: never
|
|
depends_on:
|
|
- bw
|
|
- bw-docker
|
|
environment:
|
|
DOCKER_HOST: "tcp://bw-docker:2375"
|
|
LOG_LEVEL: "info"
|
|
networks:
|
|
bw-universe:
|
|
bw-docker:
|
|
ipv4_address: 10.10.10.3
|
|
|
|
bw-docker:
|
|
image: tecnativa/docker-socket-proxy:nightly
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
environment:
|
|
CONTAINERS: "1"
|
|
networks:
|
|
bw-docker:
|
|
ipv4_address: 10.10.10.2
|
|
|
|
networks:
|
|
bw-universe:
|
|
name: bw-universe
|
|
ipam:
|
|
driver: default
|
|
config:
|
|
- subnet: 10.20.30.0/24
|
|
bw-services:
|
|
name: bw-services
|
|
ipam:
|
|
driver: default
|
|
config:
|
|
- subnet: 192.168.0.0/24
|
|
bw-docker:
|
|
name: bw-docker
|
|
ipam:
|
|
driver: default
|
|
config:
|
|
- subnet: 10.10.10.0/24
|