mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-06 12:37:01 +02:00
chore: Simplify compose.yaml
healthcheck (#4498)
This commit is contained in:
parent
e296eb4f26
commit
3c193a101e
@ -25,6 +25,6 @@ services:
|
|||||||
# cap_add:
|
# cap_add:
|
||||||
# - NET_ADMIN
|
# - NET_ADMIN
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: "ss --listening --tcp | grep -P 'LISTEN.+:smtp' || exit 1"
|
test: "ss --listening --ipv4 --tcp | grep --silent ':smtp' || exit 1"
|
||||||
timeout: 3s
|
timeout: 3s
|
||||||
retries: 0
|
retries: 0
|
||||||
|
@ -25,7 +25,7 @@ function setup_file() {
|
|||||||
--env SPOOF_PROTECTION=1
|
--env SPOOF_PROTECTION=1
|
||||||
--env SSL_TYPE='snakeoil'
|
--env SSL_TYPE='snakeoil'
|
||||||
--ulimit "nofile=$(ulimit -Sn):$(ulimit -Hn)"
|
--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'
|
_common_container_setup 'CONTAINER_ARGS_ENV_CUSTOM'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user