Add watchtower to gitea to ensure it is updated
This commit is contained in:
+18
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user