From dda0d457e1414054e7635cb6ee5c3c0a31d91bbe Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Mon, 1 Apr 2024 11:49:32 +0200 Subject: [PATCH] postfix: fix healtcheck --- docker-compose/mail-relay/docker-compose.yml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose/mail-relay/docker-compose.yml.j2 b/docker-compose/mail-relay/docker-compose.yml.j2 index 7e2daa16..c53d2c7e 100644 --- a/docker-compose/mail-relay/docker-compose.yml.j2 +++ b/docker-compose/mail-relay/docker-compose.yml.j2 @@ -19,7 +19,7 @@ services: networks: - mail-relay healthcheck: - test: ["CMD", "sh", "-c", "echo 'EHLO localhost' | nc -w 1 localhost 25 | grep -q '220 '"] + test: ["CMD", "sh", "-c", "echo 'EHLO localhost' | nc -w 1 127.0.0.1 25 | grep -q '220 '"] interval: 30s timeout: 10s retries: 3