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: