From 3424f5978ff59f70f9dd606d9ec961598b1eef9d Mon Sep 17 00:00:00 2001 From: TheFrenchGhosty Date: Sun, 9 Jul 2023 15:01:51 +0200 Subject: [PATCH 1/3] Setup Watchtower to update the documentation automatically --- dia.yml | 6 ++++++ templates/compose/watchtower.yml | 10 ++++++++++ 2 files changed, 16 insertions(+) create mode 100644 templates/compose/watchtower.yml diff --git a/dia.yml b/dia.yml index 11aa1bc..6980aba 100644 --- a/dia.yml +++ b/dia.yml @@ -73,6 +73,12 @@ app: "docs.invidious.io" tags: [docs, docker] + - name: Deploy watchtower + import_tasks: tasks/compose.yml + vars: + app: "watchtower" + tags: [watchtower, docker] + - name: caddy import_role: name: caddy_ansible.caddy_ansible diff --git a/templates/compose/watchtower.yml b/templates/compose/watchtower.yml new file mode 100644 index 0000000..7b595fe --- /dev/null +++ b/templates/compose/watchtower.yml @@ -0,0 +1,10 @@ +services: + watchtower: + container_name: watchtower + image: containrrr/watchtower:latest + restart: unless-stopped + environment: + - 'WATCHTOWER_CLEANUP=true' + volumes: + - '/var/run/docker.sock:/var/run/docker.sock' + command: docsinvidiousio_docs_1 From bc6b0fae3e8203aa29f1b2d83daa960584d4d1c4 Mon Sep 17 00:00:00 2001 From: TheFrenchGhosty Date: Sun, 9 Jul 2023 15:07:17 +0200 Subject: [PATCH 2/3] Push the right compose file --- templates/compose/watchtower.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/compose/watchtower.yml b/templates/compose/watchtower.yml index 7b595fe..7a3a931 100644 --- a/templates/compose/watchtower.yml +++ b/templates/compose/watchtower.yml @@ -7,4 +7,4 @@ services: - 'WATCHTOWER_CLEANUP=true' volumes: - '/var/run/docker.sock:/var/run/docker.sock' - command: docsinvidiousio_docs_1 + command: --interval 3600 docsinvidiousio_docs_1 From f5e265f0db82ef31b7b71294ae7a4efaf212f6b2 Mon Sep 17 00:00:00 2001 From: TheFrenchGhosty <47571719+TheFrenchGhosty@users.noreply.github.com> Date: Thu, 18 Apr 2024 18:40:04 +0200 Subject: [PATCH 3/3] Use the Github package + enforce the version Co-authored-by: Perflyst <26308977+Perflyst@users.noreply.github.com> --- templates/compose/watchtower.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/compose/watchtower.yml b/templates/compose/watchtower.yml index 7a3a931..8ac3159 100644 --- a/templates/compose/watchtower.yml +++ b/templates/compose/watchtower.yml @@ -1,7 +1,7 @@ services: watchtower: container_name: watchtower - image: containrrr/watchtower:latest + image: ghcr.io/containrrr/watchtower:1.7.1 restart: unless-stopped environment: - 'WATCHTOWER_CLEANUP=true'