Skip to content

Commit af55a6f

Browse files
authored
Merge pull request #25 from jasonlearst/fix-healthcheck-start-period
Add if for health check start period
2 parents 29bfb91 + 893f29b commit af55a6f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

templates/docker-compose.yml.j2

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ services:
167167
{% endif %}
168168
{% if container.healthcheck is defined %}
169169
healthcheck:
170-
test: "{{ container.healthcheck.test }}"
170+
test: {{ container.healthcheck.test }}
171171
{% if container.healthcheck.interval is defined %}
172172
interval: {{ container.healthcheck.interval }}
173173
{% endif %}
@@ -177,8 +177,10 @@ services:
177177
{% if container.healthcheck.retries is defined %}
178178
retries: {{ container.healthcheck.retries }}
179179
{% endif %}
180+
{% if container.healthcheck.start_period is defined %}
180181
start_period: {{ container.healthcheck.start_period }}
181182
{% endif %}
183+
{% endif %}
182184
{% if container.deploy.resources.reservations.devices is defined %}
183185
deploy:
184186
resources:

0 commit comments

Comments
 (0)