22 lines
No EOL
668 B
YAML
22 lines
No EOL
668 B
YAML
services:
|
|
keepalived:
|
|
image: osixia/keepalived:latest
|
|
container_name: keepalived
|
|
restart: unless-stopped
|
|
network_mode: host
|
|
cap_add:
|
|
- NET_ADMIN
|
|
- NET_BROADCAST
|
|
- NET_RAW
|
|
|
|
volumes:
|
|
# 1. Mount the Check Script Folder
|
|
- /docker/keepalived/checks:/checks
|
|
# 2. Mount the Config File (The Nuclear Option)
|
|
- /docker/keepalived/config:/usr/local/etc/keepalived
|
|
|
|
environment:
|
|
# We still need this to tell the container where to look
|
|
#- KEEPALIVED_CONFIG=/config/keepalived.conf
|
|
# We can remove all the other KEEPALIVED_* variables now!
|
|
# (They are handled inside the file) |