added keepalived to docker-compose
This commit is contained in:
parent
2bfc90f61b
commit
d75c978d3f
@ -2,6 +2,18 @@
|
||||
version: '3.9'
|
||||
|
||||
services:
|
||||
{% if deploy_adguard_virtual_ip['enable'] %}
|
||||
keepalived:
|
||||
image: ghcr.io/rmartin16/keepalived:latest
|
||||
network_mode: host
|
||||
environment:
|
||||
INTERFACE: {{ deploy_adguard_virtual_ip['interface'] }}
|
||||
VIRTUAL_IPS: {{ deploy_adguard_virtual_ip['vip_addr'] }}
|
||||
STATE: "BACKUP"
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
{% endif %}
|
||||
|
||||
adguard:
|
||||
image: adguard/adguardhome:latest
|
||||
ports:
|
||||
|
Loading…
Reference in New Issue
Block a user