This commit is contained in:
Zengtudor 2024-12-29 11:20:11 +08:00
parent 1c27da9918
commit 06bfbb13ab

View File

@ -6,6 +6,7 @@ services:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
restart: always restart: always
environment: environment:
- TZ=Asia/Shanghai
- WATCHTOWER_DISABLE_CONTAINERS=windows,clash # 禁用名为 windows 的容器更新 - WATCHTOWER_DISABLE_CONTAINERS=windows,clash # 禁用名为 windows 的容器更新
- WATCHTOWER_POLL_INTERVAL=3600 # 设置检查间隔为3600秒 - WATCHTOWER_POLL_INTERVAL=3600 # 设置检查间隔为3600秒
- WATCHTOWER_CLEANUP=true # 启用清理未使用的镜像 - WATCHTOWER_CLEANUP=true # 启用清理未使用的镜像