version: "3" services: watchtower: env_file: stack.env image: containrrr/watchtower:latest command: --cleanup --label-enable --http-api-periodic-polls --http-api-metrics volumes: - /var/run/docker.sock:/var/run/docker.sock - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro environment: WATCHTOWER_NOTIFICATIONS: "email shoutrrr" WATCHTOWER_NOTIFICATION_EMAIL_FROM: "sectorq77@gmail.com" WATCHTOWER_NOTIFICATION_EMAIL_TO: "jaydee@sectorq.eu" WATCHTOWER_NOTIFICATION_EMAIL_SERVER: "smtp.gmail.com" WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT: "465" WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER: "sectorq77" WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD: "uuhmmedfsjddmgbg" WATCHTOWER_NOTIFICATION_EMAIL_DELAY: "2" WATCHTOWER_NOTIFICATION_EMAIL_SUBJECTTAG: "NewUpdates" WATCHTOWER_NOTIFICATIONS_HOSTNAME: "M-SERVER" WATCHTOWER_LABEL_ENABLE: "true" WATCHTOWER_NOTIFICATIONS_LEVEL: "debug" WATCHTOWER_LIFECYCLE_HOOKS: "true" WATCHTOWER_POLL_INTERVAL: 43200 WATCHTOWER_HTTP_API_TOKEN: l4c1j4yd33Du5lo labels: - com.centurylinklabs.watchtower.enable=true - homepage.group=Utilities - homepage.name=Watchtower - homepage.weight=1 - homepage.icon=watchtower.png - homepage.href=http://192.168.77.101:8094 - homepage.description=Docker container monitoring - homepage.server=my-docker - homepage.container=watchtower-watchtower-1 - homepage.widget.type=watchtower - homepage.widget.url=http://192.168.77.101:8094 - homepage.widget.key=l4c1j4yd33Du5lo ports: - 8094:8080 restart: always