gitlab-runner - allow to add limits to dind container

This commit is contained in:
tom.chivert 2025-03-05 11:40:28 +01:00
parent ff74f167ba
commit b3d9a96316

View File

@ -51,4 +51,11 @@ services:
logging: logging:
driver: syslog driver: syslog
options: options:
tag: docker_gitlab-runner tag: docker_gitlab-runner
{% if gitlab_runner_dind_limits is defined %}
deploy:
resources:
limits:
cpus: '{{ gitlab_runner_dind_limits_cpus | default("4") }}'
memory: {{ gitlab_runner_dind_limits_memory | default("8G") }}
{% endif %}