Mount Docker config into Watchtower for private registry auth

This commit is contained in:
2026-02-28 16:22:07 +00:00
parent 3417fdcfaa
commit 44c773c943
+1
View File
@@ -4,6 +4,7 @@ services:
container_name: watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /root/.docker/config.json:/config.json:ro
environment:
- WATCHTOWER_POLL_INTERVAL=300 # Check for updates every 300 seconds (5 minutes)
- WATCHTOWER_CLEANUP=true # Remove old images after updates