Skip to content

Commit b43897b

Browse files
committed
Add container health check
1 parent e586276 commit b43897b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

spire/templates/apps/dovetail-spots.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,12 @@ Resources:
313313
- Name: SPOTS_HOST
314314
Value: !Ref SpotsHostname
315315
Essential: true
316+
HealthCheck:
317+
Command: ["CMD-SHELL", "pgrep puma"]
318+
Interval: 30
319+
Retries: 3
320+
StartPeriod: 15
321+
Timeout: 5
316322
Image: !Sub ${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/${EcrImageTag}
317323
LinuxParameters:
318324
InitProcessEnabled: true
@@ -440,6 +446,12 @@ Resources:
440446
- Name: SPOTS_HOST
441447
Value: !Ref SpotsHostname
442448
Essential: true
449+
HealthCheck:
450+
Command: ["CMD-SHELL", "pgrep solid-queue"]
451+
Interval: 30
452+
Retries: 3
453+
StartPeriod: 15
454+
Timeout: 5
443455
Image: !Sub ${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/${EcrImageTag}
444456
LinuxParameters:
445457
InitProcessEnabled: true

0 commit comments

Comments
 (0)