This repo contains the files for launching Nginx with modsecurity on a docker container.
Just map a volume matching /etc/nginx/conf.d and put your conf files inside.
Example:
docker run -v /my/folder/configs:/etc/nginx/conf.d -p 80:80 -p 443:443 --name nginx jaweewo/nginx-modsec:latest
Inside Examples folder, you have a compose example.
https://hub.docker.com/r/jaweewo/nginx-modsec/tags?page=1&ordering=last_updated