properly map folder for check and add check weight
This commit is contained in:
parent
628c7afdd0
commit
a6173f5d7c
1 changed files with 4 additions and 3 deletions
|
|
@ -14,7 +14,7 @@ services:
|
|||
|
||||
volumes:
|
||||
# Inject the check script
|
||||
- /docker/management/check_komodo.sh:/container/service/keepalived/assets/check_komodo.sh
|
||||
- /docker/keepalived/checks:/checks
|
||||
|
||||
environment:
|
||||
- KEEPALIVED_INTERFACE=eth0
|
||||
|
|
@ -30,7 +30,8 @@ services:
|
|||
- KEEPALIVED_UNICAST_PEERS=${KEEPALIVED_UNICAST_PEERS}
|
||||
|
||||
# The Magic Check: Monitors Komodo!
|
||||
- KEEPALIVED_CHECK_SCRIPT=/container/service/keepalived/assets/check_komodo.sh
|
||||
- KEEPALIVED_CHECK_SCRIPT=/checks/check_komodo.sh
|
||||
- KEEPALIVED_CHECK_INTERVAL=2
|
||||
- KEEPALIVED_CHECK_RISE=1
|
||||
- KEEPALIVED_CHECK_FALL=2
|
||||
- KEEPALIVED_CHECK_FALL=2
|
||||
- KEEPALIVED_CHECK_WEIGHT=-5
|
||||
Loading…
Reference in a new issue