Fix Postfix healthcheck

This commit is contained in:
Sam A. 2024-01-07 16:15:44 +01:00
parent d17617dd3e
commit 5a637039de
Signed by: samsapti
GPG Key ID: CBBBE7371E81C4EA
1 changed files with 6 additions and 0 deletions

View File

@ -17,6 +17,12 @@ services:
- postfix
volumes:
- "./data:/etc/opendkim/keys:rw"
healthcheck:
test: ["CMD-SHELL", "printf \"EHLO healthcheck\\nquit\\n\" | { while read l ; do sleep 1; echo $$l; done } | nc -w 2 127.0.0.1 587 | grep -qE \"^220.*ESMTP Postfix\""]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
networks:
{{ apps_postfix_docker_network }}: