move keepalived into a separate folder

This commit is contained in:
admin 2026-01-27 13:48:59 -07:00
parent fdf3d76400
commit 775fcfa6f5
2 changed files with 18 additions and 16 deletions

View file

@ -94,22 +94,7 @@ 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}
# DDNS UPDATER (IP Updates)
ddns:
image: qmcgaw/ddns-updater

View file

@ -0,0 +1,17 @@
services:
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}