Merge pull request #9 from iv-org/watchtower

Setup Watchtower to update the documentation automatically
This commit is contained in:
TheFrenchGhosty 2024-04-18 18:40:31 +02:00 committed by GitHub
commit c419d92b89
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 16 additions and 0 deletions

View file

@ -85,6 +85,12 @@
app: "docs.invidious.io" app: "docs.invidious.io"
tags: [docs, docker] tags: [docs, docker]
- name: Deploy watchtower
import_tasks: tasks/compose.yml
vars:
app: "watchtower"
tags: [watchtower, docker]
- name: caddy - name: caddy
import_role: import_role:
name: caddy_ansible.caddy_ansible name: caddy_ansible.caddy_ansible

View file

@ -0,0 +1,10 @@
services:
watchtower:
container_name: watchtower
image: ghcr.io/containrrr/watchtower:1.7.1
restart: unless-stopped
environment:
- 'WATCHTOWER_CLEANUP=true'
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
command: --interval 3600 docsinvidiousio_docs_1