bunkerweb/examples/drupal/autoconf.yml
2022-12-05 11:47:56 +01:00

31 lines
964 B
YAML

version: "3"
services:
mydrupal:
image: drupal:9.4-apache
networks:
bw-services:
aliases:
- mydrupal
volumes:
- ./drupal-modules:/var/www/html/modules
- ./drupal-profiles:/var/www/html/profiles
- ./drupal-themes:/var/www/html/themes
- ./drupal-sites:/var/www/html/sites
labels:
- bunkerweb.SERVER_NAME=www.example.com # replace with your domain
- bunkerweb.AUTO_LETS_ENCRYPT=yes
- bunkerweb.USE_REVERSE_PROXY=yes
- bunkerweb.REVERSE_PROXY_URL=/
- bunkerweb.REVERSE_PROXY_HOST=http://mydrupal
- bunkerweb.LIMIT_REQ_URL_1=/core/install.php
- bunkerweb.LIMIT_REQ_RATE_1=5r/s
- |
CUSTOM_CONF_MODSEC_CRS_drupal=SecAction "id:900130,phase:1,nolog,pass,t:none,setvar:tx.crs_exclusions_drupal=1"
# For the database, you can refer to the example of the autoconf including a database
networks:
bw-services:
external:
name: bw-services