services: watchtower: image: containrrr/watchtower container_name: watchtower restart: unless-stopped environment: WATCHTOWER_LABEL_ENABLE: "true" WATCHTOWER_SCHEDULE: "0 0 4 * * *" WATCHTOWER_CLEANUP: "true" WATCHTOWER_NOTIFICATIONS: email WATCHTOWER_NOTIFICATION_EMAIL_FROM: ${SMTP_FROM} WATCHTOWER_NOTIFICATION_EMAIL_TO: ${SMTP_TO} WATCHTOWER_NOTIFICATION_EMAIL_SERVER: smtp.gmail.com WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT: "587" WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER: ${SMTP_USER} WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD: ${SMTP_PASSWORD} volumes: - /var/run/docker.sock:/var/run/docker.sock logging: driver: json-file options: max-size: "10m" max-file: "3"