Last active
October 14, 2024 16:12
-
-
Save webnitros/0cfe7a36f87f4cecd2e4796d19907d44 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.5" | |
services: | |
bunkerweb: | |
image: bunkerity/bunkerweb:1.5.1 | |
ports: | |
- published: 80 | |
target: 8080 | |
mode: host | |
protocol: tcp | |
- published: 443 | |
target: 8443 | |
mode: host | |
protocol: tcp | |
environment: | |
- SERVER_NAME= | |
- DATABASE_URI=mariadb+pymysql://bunkerweb:changeme@bw-db:3306/db | |
- SWARM_MODE=yes | |
- MULTISITE=yes | |
- USE_REDIS=yes | |
- REDIS_HOST=bw-redis | |
- API_WHITELIST_IP=127.0.0.0/8 10.20.30.0/24 147.45.248.81 | |
networks: | |
- bw-universe | |
- bw-services | |
deploy: | |
mode: global | |
placement: | |
constraints: | |
- "node.role == worker" | |
labels: | |
- "bunkerweb.INSTANCE" | |
bw-autoconf: | |
image: bunkerity/bunkerweb-autoconf:1.5.1 | |
environment: | |
- SWARM_MODE=yes | |
- DOCKER_HOST=tcp://bw-docker:2375 | |
- DATABASE_URI=mariadb+pymysql://bunkerweb:changeme@bw-db:3306/db | |
networks: | |
- bw-universe | |
- bw-docker | |
bw-docker: | |
image: tecnativa/docker-socket-proxy | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock:ro | |
environment: | |
- CONFIGS=1 | |
- CONTAINERS=1 | |
- SERVICES=1 | |
- SWARM=1 | |
- TASKS=1 | |
- LOG_LEVEL=warning | |
networks: | |
- bw-docker | |
deploy: | |
placement: | |
constraints: | |
- "node.role == manager" | |
bw-scheduler: | |
image: bunkerity/bunkerweb-scheduler:1.5.1 | |
environment: | |
- SWARM_MODE=yes | |
- DOCKER_HOST=tcp://bw-docker:2375 | |
- DATABASE_URI=mariadb+pymysql://bunkerweb:changeme@bw-db:3306/db | |
networks: | |
- bw-universe | |
- bw-docker | |
bw-db: | |
image: mariadb:10.10 | |
environment: | |
- MYSQL_RANDOM_ROOT_PASSWORD=yes | |
- MYSQL_DATABASE=db | |
- MYSQL_USER=bunkerweb | |
- MYSQL_PASSWORD=changeme | |
volumes: | |
- bw-data:/var/lib/mysql | |
networks: | |
- bw-docker | |
bw-redis: | |
image: redis:7-alpine | |
networks: | |
- bw-universe | |
bw-ui: | |
image: bunkerity/bunkerweb-ui:1.5.1 | |
environment: | |
- DATABASE_URI=mariadb+pymysql://bunkerweb:changeme@bw-db:3306/db # Remember to set a stronger password for the database | |
- DOCKER_HOST=tcp://bw-docker:2375 | |
- ADMIN_USERNAME=superadmin | |
- ADMIN_PASSWORD=dq3333321@ss # Remember to set a stronger password for the changeme user | |
networks: | |
- bw-universe | |
- bw-docker | |
deploy: | |
labels: | |
- "bunkerweb.SERVER_NAME=bunker.domain.ru" | |
- "bunkerweb.USE_UI=yes" | |
- "bunkerweb.USE_REVERSE_PROXY=yes" | |
#- "bunkerweb.REVERSE_PROXY_URL=/21d21d" | |
- "bunkerweb.REVERSE_PROXY_HOST=http://bw-ui:7000" | |
- "bunkerweb.REVERSE_PROXY_HEADERS=X-Script-Name /21d21d" | |
- "bunkerweb.INTERCEPTED_ERROR_CODES=400 404 405 413 429 500 501 502 503 504" | |
volumes: | |
bw-data: | |
networks: | |
bw-universe: | |
name: bw-universe | |
driver: overlay | |
attachable: true | |
ipam: | |
config: | |
- subnet: 10.20.30.0/24 | |
bw-services: | |
name: bw-services | |
driver: overlay | |
attachable: true | |
bw-docker: | |
name: bw-docker | |
driver: overlay | |
attachable: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment