Skip to content

Commit

Permalink
fix(clearndr): path in container for rules
Browse files Browse the repository at this point in the history
  • Loading branch information
lanathlor committed Nov 13, 2024
1 parent 836ed4b commit 62d8f62
Showing 1 changed file with 3 additions and 31 deletions.
34 changes: 3 additions & 31 deletions data/clearndr/sub-compose/suricata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,37 +33,9 @@ services:
volumes:
- suricata-run:/var/run/suricata/
- ../containers-data/suricata/logs:/var/log/suricata
- ../containers-data/suricata/rules:/rules
- ../containers-data/suricata/rules:/etc/suricata/rules
- ../containers-data/suricata/etc:/etc/suricata
- ../containers-data/suricata/logrotate:/etc/logrotate.d/

init-pcap:
image: busybox
entrypoint: /bin/sh -c
command: ['chown -R 1000:1000 /replay']
restart: on-failure
volumes:
- {{ .Release.location | default ".." }}/{{.Values.suricata.pcapreplay.hostpath | default "containers-data/suricata/replay"}}:/replay

read-pcap:
image: jasonish/suricata:master-amd64-profiling
entrypoint: /new_entrypoint.sh
command: ["-k none --pcap-file-continuous -r /replay --runmode autofp -l /var/log/suricata --set sensor-name={{.suricata.interfaces | default "dummy0"}}"]
restart: on-failure
configs:
- source: suricata-new-entrypoint
target: /new_entrypoint.sh
- source: suricata-selks6-addin
target: /etc/suricata-configs/selks6-addin.yaml
volumes:
- ../containers-data/suricata/logs:/var/log/suricata
- suricata-rules:/etc/suricata/rules
- suricata-run:/var/run/suricata/
- ../containers-data/suricata/etc:/etc/suricata
- {{ .Release.location | default ".." }}/{{.Values.suricata.pcapreplay.hostpath | default "containers-data/suricata/replay"}}:/replay
cap_add:
- NET_ADMIN
- SYS_NICE
depends_on:
init-pcap:
condition: service_completed_successfully
scirius:
condition: service_healthy

0 comments on commit 62d8f62

Please sign in to comment.