Howtoforge published a tutorial about installing ModSecurity with Apache in a Docker Container.
Install ModSecurity with Apache in a Docker Container
ModSecurity is a free, open-source, and most popular web application firewall (WAF) that protects your web application against a wide range of Layer 7 attacks. It was designed for Apache web server monitoring, logging, and filtering requests. It comes with a Core Rule Set that detects and stops several attacks including, SQL injection, cross-site scripting, Trojans, bad user agents, session hijacking, and more.