move keepalived into a separate folder
This commit is contained in:
parent
fdf3d76400
commit
775fcfa6f5
2 changed files with 18 additions and 16 deletions
|
|
@ -94,22 +94,7 @@ 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}
|
|
||||||
# DDNS UPDATER (IP Updates)
|
# DDNS UPDATER (IP Updates)
|
||||||
ddns:
|
ddns:
|
||||||
image: qmcgaw/ddns-updater
|
image: qmcgaw/ddns-updater
|
||||||
|
|
|
||||||
17
keepalived/docker-compose.yml
Normal file
17
keepalived/docker-compose.yml
Normal 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}
|
||||||
Loading…
Reference in a new issue