0
0
opnxng-deploy-playbook/templates/compose/watchtower.yaml.j2

18 lines
470 B
Plaintext
Raw Normal View History

2023-11-06 10:39:27 +08:00
# {{ ansible_managed }}
services:
2024-06-24 00:10:01 +08:00
watchtower:
2023-11-06 10:39:27 +08:00
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
network_mode: bridge