We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0729bc4 commit 7a5d683Copy full SHA for 7a5d683
.review_apps/ecs_task_definition.tf
@@ -107,7 +107,7 @@ resource "aws_ecs_task_definition" "task" {
107
}
108
109
healthCheck = {
110
- command = ["CMD-SHELL", "wget -O - 'http://localhost:3001/up' || exit 1"]
+ command = ["CMD", "/app/bin/healthcheck"]
111
interval = 30
112
retries = 5
113
startPeriod = 180
bin/healthcheck
@@ -0,0 +1,6 @@
1
+#!/bin/sh
2
+
3
+# Healthcheck script for ECS container health checks.
4
+# Makes a request to the Rails health endpoint and exits with appropriate code.
5
6
+wget --quiet --tries=1 --spider "http://localhost:${PORT:-3000}/up" || exit 1
0 commit comments