BunkerWeb - docker-compose.yml
The snippet can be accessed without any authentication.
Authored by
RDR-IT
Edited
docker-compose.yml 2.62 KiB
services:
bunkerweb:
image: bunkerity/bunkerweb:1.5.12
restart: always
ports:
- 80:8080
- 443:8443
labels:
- "bunkerweb.INSTANCE=yes"
environment:
- SERVER_NAME=bunkerweb.demo.lan
- MULTISITE=yes
- DATABASE_URI=mariadb+pymysql://bunkerweb:changeme_mysql@bw-db:3306/db # Remember to set a stronger password for the database
- API_WHITELIST_IP=127.0.0.0/8 10.150.250.0/24
- DISABLE_DEFAULT_SERVER=yes
- USE_CLIENT_CACHE=yes
- USE_GZIP=yes
- bunkerweb.demo.lan_USE_UI=yes
- bunkerweb.demo.lan_USE_REVERSE_PROXY=yes
- bunkerweb.demo.lan_REVERSE_PROXY_URL=/
- bunkerweb.demo.lan_REVERSE_PROXY_HOST=http://bw-ui:7000
- bunkerweb.demo.lan_INTERCEPTED_ERROR_CODES=400 404 405 413 429 500 501 502 503 504
- bunkerweb.demo.lan_MAX_CLIENT_SIZE=50m
volumes:
- ./ssl:/ssl
networks:
- bw-universe
- bw-services
bw-scheduler:
image: bunkerity/bunkerweb-scheduler:1.5.12
restart: always
depends_on:
- bunkerweb
- bw-docker
environment:
- DATABASE_URI=mariadb+pymysql://bunkerweb:changeme_mysql@bw-db:3306/db # Remember to set a stronger password for the database
- DOCKER_HOST=tcp://bw-docker:2375
volumes:
- ./ssl:/ssl
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
- LOG_LEVEL=warning
networks:
- bw-docker
bw-ui:
image: bunkerity/bunkerweb-ui:1.5.12
restart: always
depends_on:
- bw-docker
environment:
- DATABASE_URI=mariadb+pymysql://bunkerweb:changeme_mysql@bw-db:3306/db # Remember to set a stronger password for the database
- DOCKER_HOST=tcp://bw-docker:2375
- ADMIN_USERNAME=admin
- ADMIN_PASSWORD=changeme_adminpassword # Remember to set a stronger password for the changeme user
networks:
- bw-universe
- bw-docker
bw-db:
image: mariadb:10.10
restart: always
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_DATABASE=db
- MYSQL_USER=bunkerweb
- MYSQL_PASSWORD=changeme_mysql # Remember to set a stronger password for the database
volumes:
- ./bw-data:/var/lib/mysql
networks:
- bw-docker
networks:
bw-universe:
name: bw-universe
ipam:
driver: default
config:
- subnet: 10.150.250.0/24
bw-services:
name: bw-services
bw-docker:
name: bw-docker
Please register or sign in to comment