Skip to content

tmorin/docker-image-keepalived

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-image-keepalived

Build Docker Image Version (latest semver)

Provide a Docker image running keepalived which is highly inspired by the project osixia/docker-keepalived.

Configuration

  • KEEPALIVED_INTERFACE: Keepalived network interface. Default value eth0
  • KEEPALIVED_PASSWORD: Keepalived password. Default value d0cker
  • KEEPALIVED_PRIORITY: Keepalived node priority. Default value 150
  • KEEPALIVED_ROUTER_ID: Keepalived virtual router ID. Default value 51
  • KEEPALIVED_UNICAST_PEERS: Keepalived unicast peers. Default value 192.168.1.10,192.168.1.11
  • KEEPALIVED_VIRTUAL_IPS: Keepalived virtual IPs. Default value 192.168.1.231,192.168.1.232
  • KEEPALIVED_NOTIFY: Script to execute when node state change. Default value /notify.sh

Usage

docker run -d --name keepalived --restart=always \
    --cap-add=NET_ADMIN --net=host \
    -e KEEPALIVED_VIRTUAL_IPS="192.168.0.99" \
    -e KEEPALIVED_UNICAST_PEERS="192.168.0.100,192.168.0.101,192.168.0.102" \
    thibaultmorin/keepalived