ソースを参照

add support for ulimits in docker role

Blaine Story 1 週間 前
親
コミット
bcbbad0968
1 ファイル変更、3 行追加、0 行削除
  1. 3 0
      roles/docker/templates/docker-compose.yml.j2

+ 3 - 0
roles/docker/templates/docker-compose.yml.j2

@@ -25,6 +25,9 @@ services:
       - {{ cap }}
 {% endfor %}
 {% endif %}
+{% if container.ulimits is defined %}
+{{ container.ulimits | to_nice_yaml(indent=2) | trim | indent(4, true) }}
+{% endif %}
 {% if container.devices is defined %}
     devices:
 {% for device in container.devices %}