mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-03-24 05:22:38 +01:00
Convert ulimits from flat strings to structured dicts with name, soft, and hard fields for better UI experience. Add default_ulimits as a configurable setting that dynamically renders into daemon.json, giving two layers of control: global defaults via the daemon and per-container overrides.
25 lines
527 B
JSON
25 lines
527 B
JSON
{% from 'docker/docker.map.jinja' import DOCKER -%}
|
|
{
|
|
"registry-mirrors": [
|
|
"https://:5000"
|
|
],
|
|
"bip": "172.17.0.1/24",
|
|
"default-address-pools": [
|
|
{
|
|
"base": "172.17.0.0/24",
|
|
"size": 24
|
|
}
|
|
]
|
|
{%- if DOCKER.default_ulimits %},
|
|
"default-ulimits": {
|
|
{%- for ULIMIT in DOCKER.default_ulimits %}
|
|
"{{ ULIMIT.name }}": {
|
|
"Name": "{{ ULIMIT.name }}",
|
|
"Soft": {{ ULIMIT.soft }},
|
|
"Hard": {{ ULIMIT.hard }}
|
|
}{{ "," if not loop.last else "" }}
|
|
{%- endfor %}
|
|
}
|
|
{%- endif %}
|
|
}
|