ulimits implementation
This commit is contained in:
parent
d2a458c427
commit
abad2c4c04
@ -105,9 +105,16 @@ services:
|
|||||||
shm_size: {{ container.shm_size }}
|
shm_size: {{ container.shm_size }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if container.ulimits is defined %}
|
{% if container.ulimits is defined %}
|
||||||
nofile:
|
ulimits:
|
||||||
soft: {{ container.ulimits_soft }}
|
{% if container.ulimits.nproc is defined %}
|
||||||
hard: {{ container.ulimits_hard }}
|
nproc: {{ container.ulimits.nproc }}
|
||||||
|
{% endif %}
|
||||||
|
{% if container.ulimits.nofile is defined %}
|
||||||
|
nofile:
|
||||||
|
{% for param, value in container.ulimits.nofile.items() %}
|
||||||
|
{{ param }}: {{ value }}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if container.dns is defined %}
|
{% if container.dns is defined %}
|
||||||
dns:
|
dns:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user