docker-services/templates/compose/watchtower.yml.j2
2024-03-18 10:52:47 +01:00

24 lines
998 B
Django/Jinja
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

version: '3.7'
services:
watchtower:
image: containrrr/watchtower:latest
container_name: watchtower
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
TZ: {{ watchtower_tz | default("Europe/Paris") }}
{% if watchtower_notifications is defined %}
WATCHTOWER_NOTIFICATIONS: {{ watchtower_notifications }}
WATCHTOWER_NOTIFICATION_URL: {{ watchtower_notifications_url }}
{% endif %}
WATCHTOWER_SCHEDULE: "{{ watchtower_schedule | default('0 0 3 * * *') }}"
WATCHTOWER_CLEANUP: "{{ watchtower_cleanup | default('true') }}"
WATCHTOWER_DEBUG: {{ watchtower_debug | default('"false"') }}
{% if watchtower_http_api_metrics is defined %}
WATCHTOWER_HTTP_API_METRICS: "{{ watchtower_http_api_metrics }}"
WATCHTOWER_HTTP_API_TOKEN: "{{ watchtower_http_api_token | default('changeme_') }}"
{% endif %}
WATCHTOWER_LABEL_ENABLE: "{{ watchtower_label_enable | default('true') }}"