feat: Adds watchtower

This commit is contained in:
2025-03-15 10:18:06 -04:00
parent 139ecca6c0
commit 78d5ca7454
2 changed files with 27 additions and 0 deletions

5
watchtower/README.md Normal file
View File

@@ -0,0 +1,5 @@
# Watchtower
[Watchtower](https://github.com/containrrr/watchtower) is a tool that watches for new docker images
based on their `tag`, and will pull new images when available and restart services that include a
label of `com.centurylinklabs.watchtower.enable: true`.

22
watchtower/compose.yml Normal file
View File

@@ -0,0 +1,22 @@
networks:
proxy:
external: true
backend:
external: true
services:
watchtower:
image: containrrr/watchtower:latest
container_name: watchtower
restart: unless-stopped
networks:
- proxy
- backend
environment:
WATCHTOWER_CLEANUP: true
WATCHTOWER_LABEL_ENABLE: true
WATCHTOWER_TIMEOUT: 30s
TZ: "America/New_York"
volumes:
- /var/run/docker.sock:/var/run/docker.sock