From 5a1fe0dc8e416d7fe371789319f8718e6b1e092a Mon Sep 17 00:00:00 2001 From: mifi Date: Thu, 24 Jul 2025 10:34:24 -0300 Subject: [PATCH] Add healthcheck --- docker-compose.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index eab22b6..f438dd1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,6 +3,12 @@ services: image: git.mifi.dev/mifi-holdings/mail-autoconfig:latest container_name: mail-autoconfig restart: unless-stopped + healthcheck: + test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:80/mail/config-v1.1.xml')"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 40s networks: - traefik labels: