Re-enable Watchtower with correct Docker API version
Fixes: - docker-compose/infrastructure.yml: - Uncommented Watchtower service - Updated image from 1.7.1 to latest - Changed DOCKER_API_VERSION from 1.44 to 1.52 (current Docker version) - Added default empty value for WATCHTOWER_NOTIFICATION_URL - scripts/deploy-homelab.sh: - Removed "temporarily disabled" note - Added Watchtower to infrastructure stack list - docs/services-overview.md: - Updated infrastructure stack count from 7 to 8 - Added Watchtower to service list Watchtower now runs successfully with scheduled updates at 4 AM daily
This commit is contained in:
@@ -74,24 +74,27 @@ services:
|
||||
# Issue tracked for resolution in future release
|
||||
# To enable: Uncomment service below and run: docker compose up -d watchtower
|
||||
#
|
||||
# watchtower:
|
||||
# image: containrrr/watchtower:1.7.1
|
||||
# container_name: watchtower
|
||||
# restart: unless-stopped
|
||||
# networks:
|
||||
# - homelab-network
|
||||
# volumes:
|
||||
# - /var/run/docker.sock:/var/run/docker.sock
|
||||
# environment:
|
||||
# - DOCKER_API_VERSION=1.44
|
||||
# - WATCHTOWER_CLEANUP=true
|
||||
# - WATCHTOWER_INCLUDE_RESTARTING=true
|
||||
# - WATCHTOWER_SCHEDULE=0 0 4 * * * # 4 AM daily
|
||||
# - WATCHTOWER_NOTIFICATIONS=shoutrrr
|
||||
# - WATCHTOWER_NOTIFICATION_URL=${WATCHTOWER_NOTIFICATION_URL}
|
||||
# labels:
|
||||
# - "homelab.category=infrastructure"
|
||||
# - "homelab.description=Automatic Docker container updates"
|
||||
# Watchtower - Automatic container updates
|
||||
# Monitors and updates Docker containers to latest versions
|
||||
# Runs daily at 4 AM
|
||||
watchtower:
|
||||
image: containrrr/watchtower:latest
|
||||
container_name: watchtower
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- homelab-network
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
environment:
|
||||
- DOCKER_API_VERSION=1.52
|
||||
- WATCHTOWER_CLEANUP=true
|
||||
- WATCHTOWER_INCLUDE_RESTARTING=true
|
||||
- WATCHTOWER_SCHEDULE=0 0 4 * * * # 4 AM daily
|
||||
- WATCHTOWER_NOTIFICATIONS=shoutrrr
|
||||
- WATCHTOWER_NOTIFICATION_URL=${WATCHTOWER_NOTIFICATION_URL:-}
|
||||
labels:
|
||||
- "homelab.category=infrastructure"
|
||||
- "homelab.description=Automatic Docker container updates"
|
||||
|
||||
# Dozzle - Real-time Docker log viewer
|
||||
# Access at: https://dozzle.${DOMAIN}
|
||||
|
||||
Reference in New Issue
Block a user