From d2a458c427ad7165528b0831a16237ed60f627e2 Mon Sep 17 00:00:00 2001 From: IronicBadger Date: Wed, 4 May 2022 09:38:59 -0400 Subject: [PATCH] adds ulimit support --- templates/docker-compose.yml.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/docker-compose.yml.j2 b/templates/docker-compose.yml.j2 index 81b46ed..6c867cc 100644 --- a/templates/docker-compose.yml.j2 +++ b/templates/docker-compose.yml.j2 @@ -104,6 +104,11 @@ services: {% if container.shm_size is defined %} shm_size: {{ container.shm_size }} {% endif %} +{% if container.ulimits is defined %} + nofile: + soft: {{ container.ulimits_soft }} + hard: {{ container.ulimits_hard }} +{% endif %} {% if container.dns is defined %} dns: {% for dns_entry in container.dns %}