mirror of
https://github.com/bunkerity/bunkerized-nginx
synced 2023-12-13 21:30:18 +01:00
65 lines
1.4 KiB
YAML
65 lines
1.4 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"
|
|
BAD_BEHAVIOR_STATUS_CODES: "400 401 403 405 429 444"
|
|
LOG_LEVEL: "info"
|
|
|
|
# ? LIMIT settings
|
|
USE_LIMIT_REQ: "no"
|
|
LIMIT_REQ_URL: "/"
|
|
LIMIT_REQ_RATE: "2r/s"
|
|
USE_LIMIT_CONN: "yes"
|
|
LIMIT_CONN_MAX_HTTP1: "1"
|
|
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
|
|
|
|
bw-docker:
|
|
image: tecnativa/docker-socket-proxy:nightly
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
environment:
|
|
CONTAINERS: "1"
|
|
networks:
|
|
- bw-docker
|
|
|
|
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:
|