Add watchtower to gitea to ensure it is updated

This commit is contained in:
2026-04-28 10:23:06 +01:00
parent 1f9496ec73
commit 97d7a2783d
2 changed files with 19 additions and 1 deletions
+18
View File
@@ -82,3 +82,21 @@
project_src: "{{ ansible_env.HOME }}/gitea/"
state: present
- name: Start watchtower
community.docker.docker_container:
name: watchtower
image: nickfedor/watchtower
restart_policy: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /home/matt/.docker/config.json:/config.json
command:
- --cleanup
- --http-api-update
- --http-api-token={{ secrets.WATCHTOWER_HTTP_API_TOKEN }}
- --http-api-periodic-polls
ports:
- "8080:8080"
state: started