Skip to content

Commit

Permalink
Merge pull request #25 from jasonlearst/fix-healthcheck-start-period
Browse files Browse the repository at this point in the history
Add if for health check start period
  • Loading branch information
ironicbadger authored May 28, 2024
2 parents 29bfb91 + 893f29b commit af55a6f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/docker-compose.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand All @@ -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:
Expand Down

0 comments on commit af55a6f

Please sign in to comment.