Skip to content

Commit 3c193a1

Browse files
authored
chore: Simplify compose.yaml healthcheck (docker-mailserver#4498)
1 parent e296eb4 commit 3c193a1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ services:
2525
# cap_add:
2626
# - NET_ADMIN
2727
healthcheck:
28-
test: "ss --listening --tcp | grep -P 'LISTEN.+:smtp' || exit 1"
28+
test: "ss --listening --ipv4 --tcp | grep --silent ':smtp' || exit 1"
2929
timeout: 3s
3030
retries: 0

test/tests/serial/tests.bats

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function setup_file() {
2525
--env SPOOF_PROTECTION=1
2626
--env SSL_TYPE='snakeoil'
2727
--ulimit "nofile=$(ulimit -Sn):$(ulimit -Hn)"
28-
--health-cmd "ss --listening --tcp | grep -P 'LISTEN.+:smtp' || exit 1"
28+
--health-cmd "ss --listening --ipv4 --tcp | grep --silent ':smtp' || exit 1"
2929
)
3030
_common_container_setup 'CONTAINER_ARGS_ENV_CUSTOM'
3131

0 commit comments

Comments
 (0)