Merge pull request #25 from jasonlearst/fix-healthcheck-start-period

Add if for health check start period
This commit is contained in:
Alex Kretzschmar 2024-05-27 21:01:24 -04:00 committed by GitHub
commit af55a6feb7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -167,7 +167,7 @@ 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 %}
@ -177,8 +177,10 @@ services:
{% if container.healthcheck.retries is defined %}
retries: {{ container.healthcheck.retries }}
{% endif %}
{% if container.healthcheck.start_period is defined %}
start_period: {{ container.healthcheck.start_period }}
{% endif %}
{% endif %}
{% if container.deploy.resources.reservations.devices is defined %}
deploy:
resources: