rxr_docker_compose/rxr_watchtower/docker-compose.yml

13 lines
471 B
YAML
Raw Permalink Normal View History

2024-12-28 11:51:30 +00:00
services:
watchtower:
image: containrrr/watchtower:latest
container_name: watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
restart: always
2024-12-28 12:55:51 +00:00
environment:
2024-12-29 03:20:11 +00:00
- TZ=Asia/Shanghai
2024-12-29 02:41:00 +00:00
- WATCHTOWER_DISABLE_CONTAINERS=windows,clash # 禁用名为 windows 的容器更新
2024-12-29 02:40:31 +00:00
- WATCHTOWER_POLL_INTERVAL=3600 # 设置检查间隔为3600秒
- WATCHTOWER_CLEANUP=true # 启用清理未使用的镜像