2023-11-06 10:39:27 +08:00
|
|
|
# {{ ansible_managed }}
|
|
|
|
version: '2.1'
|
|
|
|
services:
|
|
|
|
watchtower:
|
|
|
|
image: ghcr.io/containrrr/watchtower
|
|
|
|
container_name: watchtower
|
|
|
|
security_opt:
|
|
|
|
- no-new-privileges
|
|
|
|
environment:
|
|
|
|
- PUID=1000
|
|
|
|
- PGID=1000
|
|
|
|
- TZ=Asia/Singapore
|
|
|
|
- WATCHTOWER_CLEANUP=true
|
|
|
|
- WATCHTOWER_WARN_ON_HEAD_FAILURE=never
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
command: --schedule "0 0 1 * * *"
|
|
|
|
restart: unless-stopped
|
2023-11-16 19:23:33 +08:00
|
|
|
network_mode: bridge
|