1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-04 10:24:41 +02:00

Our healthcheck

This commit is contained in:
Florent Daigniere 2023-10-13 16:35:13 +02:00
parent 6a2169096c
commit 80317fde78
2 changed files with 12 additions and 0 deletions

View File

@ -211,6 +211,12 @@ services:
- clamav
volumes:
- "{{ root }}/filter/clamav:/var/lib/clamav"
healthcheck:
test: ["CMD-SHELL", "kill -0 `cat /var/run/clamd.pid` && kill -0 `cat /var/run/freshclam.pid`"]
interval: 10s
timeout: 5s
retries: 3
start_period: 20s
{% endif %}
{% if webdav_enabled %}

View File

@ -99,6 +99,12 @@ services:
- clamav
volumes:
- "/mailu/filter/clamav:/var/lib/clamav"
healthcheck:
test: ["CMD-SHELL", "kill -0 `cat /var/run/clamd.pid` && kill -0 `cat /var/run/freshclam.pid`"]
interval: 10s
timeout: 5s
retries: 3
start_period: 20s
resolver:
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}unbound:${MAILU_VERSION:-local}