Skip to content

Commit 3d2d9ff

Browse files
ToddHebebrandclaude
andcommitted
chore(deploy): disable watchtower image cleanup for rollback safety
After the v0.62.13 incident, we had no previous image to roll back to because WATCHTOWER_CLEANUP=true deletes old images after each update. Set to false so at least one prior image stays on disk as a rollback target. Disk cost is negligible; rollback availability is not. Applied live on both US and EU droplets alongside this template change. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent ee95dfe commit 3d2d9ff

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

deploy/eu/docker-compose.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,10 @@ services:
226226
restart: unless-stopped
227227
environment:
228228
WATCHTOWER_POLL_INTERVAL: 300
229-
WATCHTOWER_CLEANUP: "true"
229+
# Cleanup disabled so one previous image stays on disk for rollback.
230+
# A weekly host cron prunes images older than 14 days to prevent
231+
# unbounded growth: 0 3 * * 0 docker image prune -a --filter "until=336h" -f
232+
WATCHTOWER_CLEANUP: "false"
230233
WATCHTOWER_LABEL_ENABLE: "true"
231234
DOCKER_API_VERSION: "1.54"
232235
volumes:

0 commit comments

Comments
 (0)