mirror of
https://github.com/luzifer-ansible/docker-compose.git
synced 2024-12-22 17:01:17 +00:00
Introduce delay option for clusters not to reload at the same time
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
2bd9820d7d
commit
1e495581a1
2 changed files with 2 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
docker_compose_reload_minutes: 15
|
||||
docker_compose_stop_action: down
|
||||
docker_compose_validate: true
|
||||
docker_compose_reload_max_delay: 0 # Have no delay, should be less than docker_compose_reload_minutes
|
||||
|
||||
docker_compose_config:
|
||||
version: "3"
|
||||
|
|
|
@ -118,6 +118,7 @@
|
|||
|
||||
[Timer]
|
||||
OnCalendar=*:0/{{ docker_compose_reload_minutes }}
|
||||
RandomizedDelaySec={{ docker_compose_reload_max_delay }}
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
|
|
Loading…
Reference in a new issue