added keepalived for traefik failover
This commit is contained in:
parent
4fbe8cd0a7
commit
7a130400c9
1 changed files with 16 additions and 0 deletions
|
|
@ -80,6 +80,22 @@ services:
|
||||||
- ansible_external
|
- ansible_external
|
||||||
- dns_external
|
- dns_external
|
||||||
- homepage_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:
|
networks:
|
||||||
guac_external:
|
guac_external:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue