fix(deploy): bake modsec config into image to fix mount error

This commit is contained in:
João Pedro Toledo Goncalves 2026-01-27 09:38:25 -03:00
parent a19f0766cd
commit 5f6baaf5c2
2 changed files with 5 additions and 1 deletions

View File

@ -5,3 +5,8 @@ COPY modsec.conf.template /etc/nginx/templates/modsecurity.d/modsecurity.conf.te
# Copy custom rules
COPY modsec_rules/ /etc/nginx/custom_rules/
# Copy custom Nginx Configs (Frontend)
# Remove default.conf to avoid conflicts and ensure our config takes precedence
RUN rm -f /etc/nginx/conf.d/default.conf
COPY modsec_conf/ /etc/nginx/conf.d/

View File

@ -17,7 +17,6 @@ services:
- ANOMALY_INBOUND=5
- ANOMALY_OUTBOUND=4
volumes:
- ./modsec_conf/gps.oestepan.com.br.conf:/etc/nginx/conf.d/default.conf:ro
- ssl_data:/etc/nginx/ssl:ro
- modsec_logs:/var/log/modsecurity
depends_on: