2022-12-02 14:37:23 +00:00
|
|
|
version: "3.5"
|
2020-12-11 10:44:45 +00:00
|
|
|
|
|
|
|
|
services:
|
2022-06-03 15:24:14 +00:00
|
|
|
mybunker:
|
2022-12-02 14:37:23 +00:00
|
|
|
image: bunkerity/bunkerweb:1.5.0
|
2020-12-11 10:44:45 +00:00
|
|
|
ports:
|
|
|
|
|
- 80:8080
|
|
|
|
|
- 443:8443
|
|
|
|
|
environment:
|
2022-12-02 14:37:23 +00:00
|
|
|
- SERVER_NAME=www.example.com # replace with your domain
|
2020-12-11 10:44:45 +00:00
|
|
|
- MULTISITE=yes
|
|
|
|
|
- AUTO_LETS_ENCRYPT=yes
|
|
|
|
|
- DISABLE_DEFAULT_SERVER=yes
|
2021-04-26 15:00:23 +00:00
|
|
|
- USE_CLIENT_CACHE=yes
|
2020-12-11 10:44:45 +00:00
|
|
|
- USE_GZIP=yes
|
2022-06-03 15:24:14 +00:00
|
|
|
- API_WHITELIST_IP=127.0.0.0/8 10.20.30.0/24
|
|
|
|
|
- www.example.com_USE_UI=yes
|
|
|
|
|
- www.example.com_SERVE_FILES=no
|
|
|
|
|
- www.example.com_USE_REVERSE_PROXY=yes
|
2022-10-19 15:37:13 +00:00
|
|
|
- www.example.com_REVERSE_PROXY_URL=/changeme # replace with another url
|
2022-12-02 14:37:23 +00:00
|
|
|
- www.example.com_REVERSE_PROXY_HOST=http://bw-ui:7000
|
2022-10-19 15:37:13 +00:00
|
|
|
- www.example.com_REVERSE_PROXY_HEADERS=X-Script-Name /changeme # replace with another url
|
2022-06-03 15:24:14 +00:00
|
|
|
- www.example.com_REVERSE_PROXY_INTERCEPT_ERRORS=no
|
2022-10-19 15:37:13 +00:00
|
|
|
- www.example.com_LIMIT_REQ_URL=/changeme/plugins/upload # replace with another url
|
2022-06-03 15:24:14 +00:00
|
|
|
- www.example.com_LIMIT_REQ_RATE=4r/s
|
2022-10-19 15:37:13 +00:00
|
|
|
- www.example.com_LIMIT_REQ_URL_1=/changeme/logs # replace with another url
|
2022-06-03 15:24:14 +00:00
|
|
|
- www.example.com_LIMIT_REQ_RATE_1=4r/s
|
2020-12-11 10:44:45 +00:00
|
|
|
labels:
|
2022-12-02 14:37:23 +00:00
|
|
|
- "bunkerweb.INSTANCE"
|
2022-06-03 15:24:14 +00:00
|
|
|
networks:
|
2022-12-02 14:37:23 +00:00
|
|
|
- bw-universe
|
|
|
|
|
- bw-services
|
2020-12-11 10:44:45 +00:00
|
|
|
|
2022-12-02 14:37:23 +00:00
|
|
|
bw-scheduler:
|
|
|
|
|
image: bunkerity/bunkerweb-scheduler:1.5.0
|
2021-06-02 10:12:30 +00:00
|
|
|
depends_on:
|
2022-12-02 14:37:23 +00:00
|
|
|
- mybunker
|
|
|
|
|
environment:
|
2023-03-17 11:00:17 +00:00
|
|
|
- DOCKER_HOST=tcp://bw-docker-proxy:2375
|
2020-12-11 10:44:45 +00:00
|
|
|
volumes:
|
2022-12-02 14:37:23 +00:00
|
|
|
- bw-data:/data
|
|
|
|
|
networks:
|
|
|
|
|
- bw-universe
|
2023-03-17 11:00:17 +00:00
|
|
|
- bw-docker
|
2022-12-02 14:37:23 +00:00
|
|
|
|
|
|
|
|
bw-ui:
|
|
|
|
|
image: bunkerity/bunkerweb-ui:1.5.0
|
|
|
|
|
depends_on:
|
2023-03-17 11:00:17 +00:00
|
|
|
- bw-docker-proxy
|
2020-12-11 16:03:43 +00:00
|
|
|
environment:
|
2022-10-19 15:37:13 +00:00
|
|
|
- ABSOLUTE_URI=https://www.example.com/changeme/ # replace with another url
|
2023-03-17 11:00:17 +00:00
|
|
|
- DOCKER_HOST=tcp://bw-docker-proxy:2375
|
2022-06-03 15:24:14 +00:00
|
|
|
- ADMIN_USERNAME=admin
|
2022-10-19 15:37:13 +00:00
|
|
|
- ADMIN_PASSWORD=changeme # replace with a stronger password
|
2022-12-02 14:37:23 +00:00
|
|
|
volumes:
|
|
|
|
|
- bw-data:/data
|
2022-06-03 15:24:14 +00:00
|
|
|
networks:
|
2022-12-02 14:37:23 +00:00
|
|
|
- bw-universe
|
2023-03-17 11:00:17 +00:00
|
|
|
- bw-docker
|
2021-06-02 10:12:30 +00:00
|
|
|
|
2023-03-17 11:00:17 +00:00
|
|
|
bw-docker-proxy:
|
2022-12-05 10:47:56 +00:00
|
|
|
image: tecnativa/docker-socket-proxy:0.1
|
2021-06-02 10:12:30 +00:00
|
|
|
volumes:
|
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
|
|
|
environment:
|
|
|
|
|
- CONTAINERS=1
|
2022-06-03 15:24:14 +00:00
|
|
|
networks:
|
2023-03-17 11:00:17 +00:00
|
|
|
- bw-docker
|
2020-12-11 16:03:43 +00:00
|
|
|
|
|
|
|
|
volumes:
|
2022-12-02 14:37:23 +00:00
|
|
|
bw-data:
|
|
|
|
|
|
2022-06-03 15:24:14 +00:00
|
|
|
networks:
|
2022-12-02 14:37:23 +00:00
|
|
|
bw-universe:
|
|
|
|
|
name: bw-universe
|
2022-06-03 15:24:14 +00:00
|
|
|
ipam:
|
|
|
|
|
driver: default
|
|
|
|
|
config:
|
|
|
|
|
- subnet: 10.20.30.0/24
|
2022-12-02 14:37:23 +00:00
|
|
|
bw-services:
|
2023-03-17 11:00:17 +00:00
|
|
|
bw-docker:
|