update healthcheck for keepalived container

This commit is contained in:
Bertrand Lanson 2023-06-05 09:52:34 +00:00
parent 12ea4f0ca4
commit d05af5cd98

View File

@ -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