Skip to content

Commit 8e38909

Browse files
committed
replaced curl with wget in docker health checks for better compatibility
1 parent ff9f860 commit 8e38909

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
-e NODE_ENV=production \
8888
-e DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@database:${POSTGRES_PORT}/${POSTGRES_DB} \
8989
-e REDIS_URL=redis://redis:${REDIS_PORT} \
90-
--health-cmd="curl -sf http://localhost:3000/health || exit 1" \
90+
--health-cmd="wget -qO- http://localhost:3000/health || exit 1" \
9191
--health-interval=5s \
9292
--health-timeout=3s \
9393
--health-retries=60 \

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ services:
6363
redis:
6464
condition: service_healthy
6565
healthcheck:
66-
test: ["CMD", "curl", "-sf", "http://localhost:3000/health"]
66+
test: ["CMD", "wget", "-qO-", "http://localhost:3000/health"]
6767
interval: 10s
6868
timeout: 5s
6969
retries: 5

0 commit comments

Comments
 (0)