mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-03-24 05:22:38 +01:00
Add ulimits as a configurable advanced setting for every container, allowing customization through the web UI. Move hardcoded ulimits from elasticsearch and zeek into defaults.yaml and fix elasticsearch ulimits that were incorrectly nested under the environment key. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
58 lines
2.0 KiB
Plaintext
58 lines
2.0 KiB
Plaintext
# Copyright Security Onion Solutions LLC and/or licensed to Security Onion Solutions LLC under one
|
|
# or more contributor license agreements. Licensed under the Elastic License 2.0 as shown at
|
|
# https://securityonion.net/license; you may not use this file except in compliance with the
|
|
# Elastic License 2.0.
|
|
|
|
{% from 'vars/globals.map.jinja' import GLOBALS %}
|
|
{% from 'docker/docker.map.jinja' import DOCKER %}
|
|
|
|
|
|
include:
|
|
- sensoroni.config
|
|
- sensoroni.sostatus
|
|
|
|
so-sensoroni:
|
|
docker_container.running:
|
|
- image: {{ GLOBALS.registry_host }}:5000/{{ GLOBALS.image_repo }}/so-soc:{{ GLOBALS.so_version }}
|
|
- network_mode: host
|
|
- binds:
|
|
- /nsm/import:/nsm/import:rw
|
|
- /nsm/pcapout:/nsm/pcapout:rw
|
|
- /opt/so/conf/sensoroni/sensoroni.json:/opt/sensoroni/sensoroni.json:ro
|
|
- /opt/so/conf/sensoroni/analyzers:/opt/sensoroni/analyzers:rw
|
|
- /opt/so/conf/sensoroni/templates:/opt/sensoroni/templates:ro
|
|
- /opt/so/log/sensoroni:/opt/sensoroni/logs:rw
|
|
- /nsm/suripcap/:/nsm/suripcap:rw
|
|
{% if DOCKER.containers['so-sensoroni'].custom_bind_mounts %}
|
|
{% for BIND in DOCKER.containers['so-sensoroni'].custom_bind_mounts %}
|
|
- {{ BIND }}
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% if DOCKER.containers['so-sensoroni'].extra_hosts %}
|
|
- extra_hosts:
|
|
{% for XTRAHOST in DOCKER.containers['so-sensoroni'].extra_hosts %}
|
|
- {{ XTRAHOST }}
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% if DOCKER.containers['so-sensoroni'].extra_env %}
|
|
- environment:
|
|
{% for XTRAENV in DOCKER.containers['so-sensoroni'].extra_env %}
|
|
- {{ XTRAENV }}
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% if DOCKER.containers['so-sensoroni'].ulimits %}
|
|
- ulimits:
|
|
{% for ULIMIT in DOCKER.containers['so-sensoroni'].ulimits %}
|
|
- {{ ULIMIT }}
|
|
{% endfor %}
|
|
{% endif %}
|
|
- watch:
|
|
- file: /opt/so/conf/sensoroni/sensoroni.json
|
|
- require:
|
|
- file: sensoroniagentconf
|
|
|
|
delete_so-sensoroni_so-status.disabled:
|
|
file.uncomment:
|
|
- name: /opt/so/conf/so-status/so-status.conf
|
|
- regex: ^so-sensoroni$
|