adds sysctl support

This commit is contained in:
IronicBadger 2021-02-09 17:06:33 -05:00
parent 7b70869e09
commit 6d770df305

View File

@ -74,9 +74,6 @@ services:
{% if container.mem_limit is defined %}
mem_limit: {{ container.mem_limit }}
{% endif %}
{% if container.restart is defined %}
restart: {{ container.restart }}
{% endif %}
{% if container.command is defined %}
command:
{% for command in container.command %}
@ -89,6 +86,12 @@ services:
- {{ sec_opt }}
{% endfor %}
{% endif %}
{% if container.sysctl is defined %}
sysctls:
{% for param in container.sysctl %}
- {{ param }}
{% endfor %}
{% endif %}
{% if container.shm_size is defined %}
shm_size: {{ container.shm_size }}
{% endif %}
@ -98,5 +101,8 @@ services:
- {{ dns_entry }}
{% endfor %}
{% endif %}
{% if container.restart is defined %}
restart: {{ container.restart }}
{% endif %}
{% endif %}
{% endfor %}