adds sysctl support
This commit is contained in:
parent
7b70869e09
commit
6d770df305
@ -74,9 +74,6 @@ services:
|
|||||||
{% if container.mem_limit is defined %}
|
{% if container.mem_limit is defined %}
|
||||||
mem_limit: {{ container.mem_limit }}
|
mem_limit: {{ container.mem_limit }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if container.restart is defined %}
|
|
||||||
restart: {{ container.restart }}
|
|
||||||
{% endif %}
|
|
||||||
{% if container.command is defined %}
|
{% if container.command is defined %}
|
||||||
command:
|
command:
|
||||||
{% for command in container.command %}
|
{% for command in container.command %}
|
||||||
@ -89,6 +86,12 @@ services:
|
|||||||
- {{ sec_opt }}
|
- {{ sec_opt }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if container.sysctl is defined %}
|
||||||
|
sysctls:
|
||||||
|
{% for param in container.sysctl %}
|
||||||
|
- {{ param }}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
{% if container.shm_size is defined %}
|
{% if container.shm_size is defined %}
|
||||||
shm_size: {{ container.shm_size }}
|
shm_size: {{ container.shm_size }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -98,5 +101,8 @@ services:
|
|||||||
- {{ dns_entry }}
|
- {{ dns_entry }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if container.restart is defined %}
|
||||||
|
restart: {{ container.restart }}
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
Loading…
x
Reference in New Issue
Block a user