From d05af5cd98456c0f10af2f7eb2ecc639b6c20e74 Mon Sep 17 00:00:00 2001 From: Bertrand Lanson Date: Mon, 5 Jun 2023 09:52:34 +0000 Subject: [PATCH] update healthcheck for keepalived container --- templates/docker-compose.yml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/docker-compose.yml.j2 b/templates/docker-compose.yml.j2 index 28e1dba..df76051 100644 --- a/templates/docker-compose.yml.j2 +++ b/templates/docker-compose.yml.j2 @@ -7,7 +7,7 @@ services: image: ghcr.io/rmartin16/keepalived:latest network_mode: host healthcheck: - test: ["CMD-SHELL", "ip addr show dev management | grep -q {{ deploy_adguard_virtual_ip['vip_addr'] }}"] + test: ["CMD-SHELL", "ip addr show dev {{ deploy_adguard_virtual_ip['interface'] }} | grep -q {{ deploy_adguard_virtual_ip['vip_addr'] }}"] interval: 10s timeout: 5s retries: 5