From 7a130400c96f2a831358d368392a6301dde434c9 Mon Sep 17 00:00:00 2001 From: admin Date: Mon, 26 Jan 2026 15:39:39 -0700 Subject: [PATCH] added keepalived for traefik failover --- core/docker-compose.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/core/docker-compose.yml b/core/docker-compose.yml index a25b72b..2156c73 100644 --- a/core/docker-compose.yml +++ b/core/docker-compose.yml @@ -80,6 +80,22 @@ services: - ansible_external - dns_external - homepage_external + keepalived: + image: osixia/keepalived:latest + container_name: keepalived + restart: unless-stopped + # Must run on host network to manage the interface IP + network_mode: host + cap_add: + - NET_ADMIN + - NET_BROADCAST + - NET_RAW + environment: + - KEEPALIVED_INTERFACE=eth0 # Check if your LXC interface is eth0 + - KEEPALIVED_ROUTER_ID=51 + - KEEPALIVED_VIRTUAL_IPS=172.16.201.2/24 # THE FLOATING IP + - KEEPALIVED_PRIORITY=${KEEPALIVED_PRIORITY} # 150 for Master, 100 for Backup + - KEEPALIVED_PASSWORD=${DNS_ADMIN_PASSWORD} networks: guac_external: