From a9e423fe8b09e98f2aca04ca0f9cf31ff4b36fe2 Mon Sep 17 00:00:00 2001 From: Arthur Zamarin Date: Wed, 10 Jul 2024 13:04:31 +0300 Subject: [PATCH] docker-compose: improve watchtower args Signed-off-by: Arthur Zamarin --- docker-compose.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 8fb72f5..0600e11 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -76,4 +76,10 @@ services: # --host=unix:///var/run/docker.sock --host=unix:///var/run/docker-watchtower/docker.sock - /var/run/docker-watchtower:/var/run/docker-watchtower - /root/.docker/config.json:/config.json - command: --label-enable --host unix:///var/run/docker-watchtower/docker.sock + command: + - --label-enable + - --cleanup + - --schedule + - "0 0 * * * *" + - --host + - unix:///var/run/docker-watchtower/docker.sock