bunkerized-nginx/tests/core/whitelist/docker-compose.yml
2023-08-10 15:06:38 +02:00

95 lines
1.9 KiB
YAML

version: "3.5"
services:
bw:
image: bunkerity/bunkerweb:1.5.1
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"
HTTP_PORT: "80"
USE_BUNKERNET: "no"
LOG_LEVEL: "info"
USE_BLACKLIST: "yes"
BLACKLIST_IP: "0.0.0.0/0"
BLACKLIST_IP_URLS: ""
# ? WHITELIST settings
USE_WHITELIST: "no"
WHITELIST_IP: ""
WHITELIST_IP_URLS: ""
WHITELIST_RDNS_GLOBAL: "yes"
WHITELIST_RDNS: ""
WHITELIST_RDNS_URLS: ""
WHITELIST_ASN: ""
WHITELIST_ASN_URLS: ""
WHITELIST_USER_AGENT: ""
WHITELIST_USER_AGENT_URLS: ""
WHITELIST_URI: ""
WHITELIST_URI_URLS: ""
networks:
bw-universe:
bw-services:
ipv4_address: 192.168.0.2
bw-global-network:
ipv4_address: 1.0.0.2
bw-scheduler:
image: bunkerity/bunkerweb-scheduler:1.5.1
pull_policy: never
depends_on:
- bw
- bw-docker
volumes:
- bw-data:/data
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
whitelist-api:
build: api
networks:
bw-docker:
bw-services:
ipv4_address: 192.168.0.4
volumes:
bw-data:
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-global-network:
name: bw-global-network
ipam:
driver: default
config:
- subnet: 1.0.0.0/8
bw-docker:
name: bw-docker