fixed error on deploying adguard with keepalived + strict port mapping
This commit is contained in:
parent
f2d06cafbb
commit
4c333f9cf3
@ -6,6 +6,12 @@ services:
|
|||||||
keepalived:
|
keepalived:
|
||||||
image: ghcr.io/rmartin16/keepalived:latest
|
image: ghcr.io/rmartin16/keepalived:latest
|
||||||
network_mode: host
|
network_mode: host
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "ip addr show dev management | grep -q {{ deploy_adguard_virtual_ip['vip_addr'] }}"]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
|
start_period: 30s
|
||||||
environment:
|
environment:
|
||||||
INTERFACE: {{ deploy_adguard_virtual_ip['interface'] }}
|
INTERFACE: {{ deploy_adguard_virtual_ip['interface'] }}
|
||||||
VIRTUAL_IPS: {{ deploy_adguard_virtual_ip['vip_addr'] }}
|
VIRTUAL_IPS: {{ deploy_adguard_virtual_ip['vip_addr'] }}
|
||||||
@ -18,7 +24,8 @@ services:
|
|||||||
image: adguard/adguardhome:latest
|
image: adguard/adguardhome:latest
|
||||||
{% if deploy_adguard_virtual_ip['enable']%}
|
{% if deploy_adguard_virtual_ip['enable']%}
|
||||||
depends_on:
|
depends_on:
|
||||||
- keepalived
|
keepalived:
|
||||||
|
condition: service_healthy
|
||||||
{% endif %}
|
{% endif %}
|
||||||
ports:
|
ports:
|
||||||
- "53:53/tcp"
|
- "53:53/tcp"
|
||||||
|
Loading…
Reference in New Issue
Block a user