Remove watchtower, and do updates manually from now on

Keeps @IronicBadger happy!
This commit is contained in:
Jake Howard 2020-10-22 18:07:48 +01:00
parent efd22010b7
commit 47ad40bb52
Signed by: jake
GPG key ID: 57AFB45680EDD477
4 changed files with 0 additions and 34 deletions

View file

@ -24,7 +24,6 @@
docker_users: docker_users:
- "{{ user }}" - "{{ user }}"
- docker_cleanup - docker_cleanup
- watchtower
- traefik - traefik
# ZFS Hosts # ZFS Hosts

View file

@ -1,12 +0,0 @@
version: "2.3"
services:
watchtower:
image: containrrr/watchtower:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- "{{ home }}/.docker/config.json:/config.json:ro"
- /etc/timezone:/etc/timezone:ro
environment:
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_SCHEDULE=0 12 * * *
restart: unless-stopped

View file

@ -1,4 +0,0 @@
- name: restart watchtower
shell:
chdir: /opt/watchtower
cmd: "{{ docker_update_command }}"

View file

@ -1,17 +0,0 @@
- name: Create install directory
file:
path: /opt/watchtower
state: directory
owner: "{{ docker_user.name }}"
mode: "{{ docker_compose_directory_mask }}"
become: true
- name: Install compose file
template:
src: files/docker-compose.yml
dest: /opt/watchtower/docker-compose.yml
mode: "{{ docker_compose_file_mask }}"
owner: "{{ docker_user.name }}"
validate: /usr/bin/docker-compose -f %s config
notify: restart watchtower
become: true