- git clone https://github.com/XoneStar/nginx_naxsi.git
- cd nginx_naxsi
- docker build -t nginx_naxsi .
- docker run --name nginx_naxsi -d -p 80:80 -v {yourself conf dir}/conf/nginx.conf:/etc/nginx/nginx.conf -v {yourself conf dir}/conf/naxsi_core.rules:/etc/nginx/naxsi_core.rules -v {yourself conf dir}/conf/naxsi.rules:/etc/nginx/naxsi.rules nginx-naxsi
- docker pull creatorx/nginx-naxsi
- docker run --name nginx_naxsi -d -p 80:80 -v {yourself conf dir}/conf/nginx.conf:/etc/nginx/nginx.conf -v {yourself conf dir}/conf/naxsi_core.rules:/etc/nginx/naxsi_core.rules -v {yourself conf dir}/conf/naxsi.rules:/etc/nginx/naxsi.rules creatorx/nginx-naxsi
- modify/add/update {yourself conf dir}/conf/nginx.conf naxsi_core.rules naxsi.rules
- docker restart [container-id]