Skip to content

Commit 23504e5

Browse files
committed
fix: improve maildev healthcheck wget flags
Add --tries=1 so Docker's --retries controls failure counting, and -T 3 to bound the network timeout below Docker's 5s timeout for fast failure detection.
1 parent 5320d81 commit 23504e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/e2e-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
maildev:
5151
image: maildev/maildev:2.2.1
5252
options: >-
53-
--health-cmd "wget -q --spider http://localhost:1080/healthz || exit 1"
53+
--health-cmd "wget --spider --no-verbose --tries=1 -T 3 http://localhost:1080/healthz"
5454
--health-interval 5s
5555
--health-timeout 5s
5656
--health-retries 5

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ services:
3838
- '${DOCKER_MAILDEV_SMTP_PORT:-1025}:1025'
3939
- '${DOCKER_MAILDEV_UI_PORT:-1080}:1080'
4040
healthcheck:
41-
test: ['CMD-SHELL', 'wget -q --spider http://localhost:1080/healthz || exit 1']
41+
test: ['CMD-SHELL', 'wget --spider --no-verbose --tries=1 -T 3 http://localhost:1080/healthz']
4242
interval: 5s
4343
timeout: 5s
4444
retries: 5

0 commit comments

Comments
 (0)