mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
66 lines
1.4 KiB
YAML
66 lines
1.4 KiB
YAML
version: "3.5"
|
|
|
|
services:
|
|
bw:
|
|
image: bunkerity/bunkerweb:1.6.0-beta
|
|
pull_policy: never
|
|
labels:
|
|
- "bunkerweb.INSTANCE=yes"
|
|
volumes:
|
|
- ./index.html:/var/www/html/index.html
|
|
environment:
|
|
API_WHITELIST_IP: "127.0.0.0/8 10.20.30.0/24"
|
|
networks:
|
|
bw-universe:
|
|
bw-services:
|
|
ipv4_address: 1.0.0.2
|
|
|
|
bw-scheduler:
|
|
image: bunkerity/bunkerweb-scheduler:1.6.0-beta
|
|
pull_policy: never
|
|
depends_on:
|
|
- bw
|
|
environment:
|
|
BUNKERWEB_INSTANCES: "bw"
|
|
API_WHITELIST_IP: "127.0.0.0/8 10.20.30.0/24"
|
|
HTTP_PORT: "80"
|
|
USE_BLACKLIST: "no"
|
|
SEND_ANONYMOUS_REPORT: "no"
|
|
LOG_LEVEL: "info"
|
|
CUSTOM_LOG_LEVEL: "debug"
|
|
|
|
# ? BUNKERNET settings
|
|
USE_BUNKERNET: "yes"
|
|
BUNKERNET_SERVER: "http://bunkernet-api:8080"
|
|
CUSTOM_CONF_SERVER_HTTP_ready: |
|
|
location /ready {
|
|
default_type 'text/plain';
|
|
rewrite_by_lua_block {
|
|
ngx.print('ready')
|
|
ngx.flush(true)
|
|
ngx.exit(ngx.HTTP_OK)
|
|
}
|
|
}
|
|
networks:
|
|
- bw-universe
|
|
|
|
bunkernet-api:
|
|
build: api
|
|
networks:
|
|
bw-universe:
|
|
bw-services:
|
|
ipv4_address: 1.0.0.4
|
|
|
|
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: 1.0.0.0/24
|