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

20 lines
486 B
Plaintext
Raw Normal View History

2023-11-06 10:39:27 +08:00
# {{ ansible_managed }}
version: "3.8"
2023-11-06 10:39:27 +08:00
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
2023-11-16 19:23:33 +08:00
network_mode: bridge