version: "3" services: mydrupal: image: drupal:9-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 - | bunkerweb.CUSTOM_CONF_MODSEC_CRS_drupal= SecAction \ "id:900130,\ phase:1,\ nolog,\ pass,\ t:none,\ setvar:tx.crs_exclusions_drupal=1" mydb: image: mariadb networks: bw-services: aliases: - mydb volumes: - ./db-data:/var/lib/mysql environment: - MYSQL_ROOT_PASSWORD=db-root-pwd # replace with a stronger password - MYSQL_DATABASE=drupaldb - MYSQL_USER=user - MYSQL_PASSWORD=db-user-pwd # replace with a stronger password networks: bw-services: external: name: bw-services