escape test with quotes, make interval and timeout optional

This commit is contained in:
Corbin Bartsch 2023-10-28 21:02:50 -04:00
parent b8e5485956
commit 4642c4a72b
Signed by: coredotbin
GPG Key ID: 32D3B80A08D93212

View File

@ -161,9 +161,13 @@ services:
{% endif %}
{% if container.healthcheck is defined %}
healthcheck:
test: {{ container.healthcheck.test }}
test: "{{ container.healthcheck.test }}"
{% if container.healthcheck.interval is defined %}
interval: {{ container.healthcheck.interval }}
{% endif %}
{% if container.healthcheck.timeout is defined %}
timeout: {{ container.healthcheck.timeout }}
{% endif %}
{% if container.healthcheck.retries is defined %}
retries: {{ container.healthcheck.retries }}
{% endif %}