chore: Simplify compose.yaml healthcheck (#4498)

This commit is contained in:
Brennan Kinney 2025-06-02 19:27:53 +12:00 committed by GitHub
parent e296eb4f26
commit 3c193a101e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -25,6 +25,6 @@ services:
# cap_add:
# - NET_ADMIN
healthcheck:
test: "ss --listening --tcp | grep -P 'LISTEN.+:smtp' || exit 1"
test: "ss --listening --ipv4 --tcp | grep --silent ':smtp' || exit 1"
timeout: 3s
retries: 0

View File

@ -25,7 +25,7 @@ function setup_file() {
--env SPOOF_PROTECTION=1
--env SSL_TYPE='snakeoil'
--ulimit "nofile=$(ulimit -Sn):$(ulimit -Hn)"
--health-cmd "ss --listening --tcp | grep -P 'LISTEN.+:smtp' || exit 1"
--health-cmd "ss --listening --ipv4 --tcp | grep --silent ':smtp' || exit 1"
)
_common_container_setup 'CONTAINER_ARGS_ENV_CUSTOM'