From 5e0ee52ff55e010a37f777dbe528bdd9efdc3d9a Mon Sep 17 00:00:00 2001 From: Subin Mathew Date: Thu, 23 Dec 2021 10:48:26 +0530 Subject: [PATCH] Update docker compose file to have update schedule to 1 hour (#9943) --- deploy/aws_ami/docker-compose.yml | 4 ++-- deploy/docker/README.md | 4 ++-- deploy/docker/docker-compose.yml | 4 ++-- deploy/template/docker-compose.yml.sh | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/deploy/aws_ami/docker-compose.yml b/deploy/aws_ami/docker-compose.yml index 4eab985447..ccdff371ca 100644 --- a/deploy/aws_ami/docker-compose.yml +++ b/deploy/aws_ami/docker-compose.yml @@ -18,6 +18,6 @@ services: image: containrrr/watchtower:latest-dev volumes: - /var/run/docker.sock:/var/run/docker.sock - # Update check interval in seconds. - command: --interval 300 --label-enable --cleanup + # Update check every hour. + command: --schedule "0 0 * ? * *" --label-enable --cleanup restart: unless-stopped diff --git a/deploy/docker/README.md b/deploy/docker/README.md index b25a426880..23e9eadd6d 100644 --- a/deploy/docker/README.md +++ b/deploy/docker/README.md @@ -55,8 +55,8 @@ services: image: containrrr/watchtower:latest-dev volumes: - /var/run/docker.sock:/var/run/docker.sock - # Update check interval in seconds. - command: --interval 300 --label-enable --cleanup + # Update check every hour. + command: --schedule "0 0 * ? * *" --label-enable --cleanup ``` After saving this file, `cd` to the folder that contains this file and run the following command to start Appsmith: diff --git a/deploy/docker/docker-compose.yml b/deploy/docker/docker-compose.yml index e59830cb5e..fc5ac26b88 100644 --- a/deploy/docker/docker-compose.yml +++ b/deploy/docker/docker-compose.yml @@ -17,5 +17,5 @@ services: image: containrrr/watchtower volumes: - /var/run/docker.sock:/var/run/docker.sock - # Update check interval in seconds. - command: --interval 300 --label-enable --cleanup + # Update check every hour. + command: --schedule "0 0 * ? * *" --label-enable --cleanup diff --git a/deploy/template/docker-compose.yml.sh b/deploy/template/docker-compose.yml.sh index 13b763f5fb..734c8ff0ec 100644 --- a/deploy/template/docker-compose.yml.sh +++ b/deploy/template/docker-compose.yml.sh @@ -82,8 +82,8 @@ services: image: containrrr/watchtower volumes: - /var/run/docker.sock:/var/run/docker.sock - # Update check interval in seconds. - command: --interval 300 --label-enable --cleanup + # Update check every hour. + command: --schedule "0 0 * ? * *" --label-enable --cleanup networks: - appsmith restart: always