Skip to content

Commit 5320d81

Browse files
committed
fix: use wget CMD-SHELL for maildev healthcheck
curl may not be present in the maildev image; switch to wget with CMD-SHELL so the check runs via a shell and works reliably.
1 parent 8f83d8b commit 5320d81

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 "curl -f http://localhost:1080/api/"
53+
--health-cmd "wget -q --spider http://localhost:1080/healthz || exit 1"
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', 'curl', '-f', 'http://localhost:1080/api/']
41+
test: ['CMD-SHELL', 'wget -q --spider http://localhost:1080/healthz || exit 1']
4242
interval: 5s
4343
timeout: 5s
4444
retries: 5

0 commit comments

Comments
 (0)