docker-compose/watchtower/docker-compose.yml

23 lines
1.0 KiB
YAML
Raw Normal View History

2024-12-26 15:40:19 +01:00
# https://linuxiac.com/watchtower-automatically-update-docker-container-images/
services:
watchtower:
2024-12-26 14:42:35 +01:00
image: containrrr/watchtower
env_file: .env
2024-12-26 15:40:19 +01:00
mem_limit: 512m
restart: always
2024-12-26 14:42:35 +01:00
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
WATCHTOWER_SCHEDULE: "0 0 7 * * *"
TZ: Europe/Rome
WATCHTOWER_MONITOR_ONLY: true
WATCHTOWER_CLEANUP: true
WATCHTOWER_NOTIFICATIONS: email
WATCHTOWER_NOTIFICATIONS_HOSTNAME: ${WATCHTOWER_NOTIFICATIONS_HOSTNAME}
WATCHTOWER_NOTIFICATION_EMAIL_FROM: ${WATCHTOWER_NOTIFICATION_EMAIL_FROM}
WATCHTOWER_NOTIFICATION_EMAIL_TO: ${WATCHTOWER_NOTIFICATION_EMAIL_TO}
WATCHTOWER_NOTIFICATION_EMAIL_SERVER: ${WATCHTOWER_NOTIFICATION_EMAIL_SERVER}
WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT: ${WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT}
WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER: ${WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER}
2024-12-26 15:40:19 +01:00
WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD: ${WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD}