fix(deploy): bake modsec config into image to fix mount error
This commit is contained in:
parent
a19f0766cd
commit
5f6baaf5c2
|
|
@ -5,3 +5,8 @@ COPY modsec.conf.template /etc/nginx/templates/modsecurity.d/modsecurity.conf.te
|
||||||
|
|
||||||
# Copy custom rules
|
# Copy custom rules
|
||||||
COPY modsec_rules/ /etc/nginx/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/
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,6 @@ services:
|
||||||
- ANOMALY_INBOUND=5
|
- ANOMALY_INBOUND=5
|
||||||
- ANOMALY_OUTBOUND=4
|
- ANOMALY_OUTBOUND=4
|
||||||
volumes:
|
volumes:
|
||||||
- ./modsec_conf/gps.oestepan.com.br.conf:/etc/nginx/conf.d/default.conf:ro
|
|
||||||
- ssl_data:/etc/nginx/ssl:ro
|
- ssl_data:/etc/nginx/ssl:ro
|
||||||
- modsec_logs:/var/log/modsecurity
|
- modsec_logs:/var/log/modsecurity
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue